GetValidStats();
#1

https://pastebin.com/FmDHxt4n

It just sets the hostname to the hostname of the server not Server[validhostname]
Reply
#2

push up
Reply
#3

pawn Код:
if(!strcmp(hostname,Server[validhostname],false))
    {
        format(szCmd, sizeof(szCmd), "hostname %s", Server[validhostname]);
        SendRconCommand(szCmd);
    }
In this 'if' line you are checking to see if the current hostname matches Server[validhostname], instead of the opposite which is what you need. You'll want to remove the '!' to make sure the strings do NOT match.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)