SendRconCommand mapname doesn't work
#1

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?
Reply
#2

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.
Reply
#3

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..
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)