Number of arguments does not match - 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: Number of arguments does not match (
/showthread.php?tid=380695)
Number of arguments does not match -
dott - 26.09.2012
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
Re: Number of arguments does not match -
Sasoft - 26.09.2012
I don't think you can use it like that,
Just use it like this:
Re: Number of arguments does not match -
fordawinzz - 26.09.2012
pawn Код:
new szString[32];
format(szString, sizeof szString, "hostname %s", S_HOSTNAME);
SendRconCommand(szString);
Re: Number of arguments does not match -
dott - 26.09.2012
Quote:
Originally Posted by fordawinzz
pawn Код:
new szString[32]; format(szString, sizeof szString, "hostname %s", S_HOSTNAME); SendRconCommand(szString);
|
thanks!