SA-MP Forums Archive
SendRconCommand mapname doesn't work - 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: SendRconCommand mapname doesn't work (/showthread.php?tid=387020)



SendRconCommand mapname doesn't work - WackoX - 22.10.2012

I'm trying to do this:

pawn Код:
new Test[1][16] = {
"testname1234"
};


public OnGameModeInit()
{
    new string[32];
    format(string, sizeof(string), "mapname %s", Test[0]);
    SendRconCommand(string);
    return 1;
}
Only it doesn't work, my server still says ''San Andreas'', when i go to the server logs i see this:
Quote:

[12:34:56] mapname = "San Andreas" (string)

Why doesn't it work?


Re: SendRconCommand mapname doesn't work - Hiddos - 22.10.2012

The above code seems to work perfectly fine to me? Or well, I didn't see any message in the logs but do see the change in the client.


Re: SendRconCommand mapname doesn't work - WackoX - 22.10.2012

Quote:
Originally Posted by Hiddos
Посмотреть сообщение
The above code seems to work perfectly fine to me? Or well, I didn't see any message in the logs but do see the change in the client.
Oops! got it, it appears i've placed the code that added the mapname AFTER i send the RCON command, thanks for responding though..