Moderators: Moderators, Support

nmX.CRIMENY wrote:If I want a partial match, how do I write that in the logic textarea? Just how a wildcard could be used for *.jpg or thepicture.* is what I'm wanting to know how to do, and not necessarily exclusive to sv_hostname or similar, since I would like to use it for other server-side settings as well.

if find([$server_map], "mp") != -1
~Mr-Freeze~ wrote:Yeah its not that easy to understand I mostly guess /trial and error
ron could you explan find("source", "search", 0)
how the number on the end work's with -1 yet in the eg its 0 and that is not doing much
Think u just need the -1 and should work
Yeh the find will work for mapswould only show maps with mp in them
- Code: Select all
if find([$server_map], "mp") != -1
off topic Nice update with the green folder when a filters on.
This is an example string
0000000000111111111122222
0123456789012345678901234description FTWgl Servers
version 1.0
game UrbanTerror
author
comments
email
homepage
directory
filename
commandline
active 0
if find("[$sv_hostname]", "FTWgl.com") != -1

nmX.CRIMENY wrote:I now understand the return values and why -1 is used. Thanks!
My filter is displaying 1, sometimes 2, servers that are unrelated to the filter and none of the appropriate ones for some reason. Here's the full text of the .qtf file:
- Code: Select all
description FTWgl Servers
version 1.0
game UrbanTerror
author
comments
homepage
directory
filename
commandline
active 0
if find("[$sv_hostname]", "FTWgl.com") != -1
Where am I going wrong? Urban Terror's server.cfg uses sv_hostname, but Qtracker properties display both hostname and sv_hostname; I've tried both with no luck.


Users browsing this forum: No registered users and 2 guests