Number of arguments does not match
#1

pawn Код:
SendRconCommand("hostname %s", S_HOSTNAME);
SendRconCommand("mapname %s", S_MAPNAME);
SendRconCommand("weburl %s", S_WEBURL);
I have them all defined on top of the script, but it gives me these errors:

pawn Код:
C:\Users\Stefanche16\Desktop\\gamemodes\crp.pwn(13035) : warning 202: number of arguments does not match definition
C:\Users\Stefanche16\Desktop\\gamemodes\crp.pwn(13037) : warning 202: number of arguments does not match definition
C:\Users\Stefanche16\Desktop\\gamemodes\crp.pwn(13038) : warning 202: number of arguments does not match definition
Reply
#2

I don't think you can use it like that,
Just use it like this:

pawn Код:
SendRconCommand("weburl www.yourwebsitehere.pawno");
Reply
#3

pawn Код:
new szString[32];
format(szString, sizeof szString, "hostname %s", S_HOSTNAME);
SendRconCommand(szString);
Reply
#4

Quote:
Originally Posted by fordawinzz
Посмотреть сообщение
pawn Код:
new szString[32];
format(szString, sizeof szString, "hostname %s", S_HOSTNAME);
SendRconCommand(szString);
thanks!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)