GetValidStats(); - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: GetValidStats(); (
/showthread.php?tid=665316)
GetValidStats(); -
playstores - 30.03.2019
https://pastebin.com/FmDHxt4n
It just sets the hostname to the hostname of the server not Server[validhostname]
Re: GetValidStats(); -
playstores - 30.03.2019
push up
Re: GetValidStats(); -
Crayder - 31.03.2019
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.