Error code - 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: Error code (
/showthread.php?tid=348047)
Error code -
iGetty - 03.06.2012
I have an error on this line.
pawn Код:
if(sscanf(params, "i", id)) return SendClientMessage(playerid, WHITE, "Server: /rap [1 - 4]");
Код:
error 035: argument type mismatch (argument 1)
Thanks.
Re: Error code -
Elysian` - 03.06.2012
Try:
Код:
if(sscanf(params, "s", id)) return SendClientMessage(playerid, WHITE, "Server: /rap [1 - 4]");
Re: Error code -
swindle69 - 03.06.2012
break it apart?
Quote:
if(sscanf(params, "i", id))
return SendClientMessage(playerid, WHITE, "Server: /rap [1 - 4]");
|
i guess something is wrong with "if(sscanf(params, "i", id))"
Re: Error code -
iGetty - 03.06.2012
It's not a string... It won't work like that.
Edit:
If I remove the "return SendClientMessage(playerid, WHITE, "Server: /rap [1 - 4]");
It still has the error.
Edit 2: Fixed, I forgot to add this under the command.
Quote:
command(rap, playerid, params[])
|