Whats wrong in this line? - 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: Whats wrong in this line? (
/showthread.php?tid=478775)
Whats wrong in this line? -
Audi_Quattrix - 01.12.2013
Код:
if(sscanf(params,"ui",user,level)) return SendClientMessage(playerid,COL_RED,"Usage: /setlevel [playerid] [level]!");
Код:
(372) : error 035: argument type mismatch (argument 2)
I am using sscanf2 and its Up to date
Re: Whats wrong in this line? -
Avi Raj - 01.12.2013
change to :-
pawn Код:
if(sscanf(params,"ui",user,level)) return SendClientMessage(playerid,COL_RED,"Usage: /setlevel [playerid] [level]");
Re: Whats wrong in this line? -
Audi_Quattrix - 01.12.2013
All u did was removed " ! " and it didnt fix the problem
Re: Whats wrong in this line? -
Tomix - 01.12.2013
This should work:
Код:
if(sscanf(params,"ui",user,level)) return SendClientMessage(playerid,0xF81414,"Usage: /setlevel [playerid] [level]!");
Re: Whats wrong in this line? -
Audi_Quattrix - 01.12.2013
Thanks. I now know where was problem.
My color was defined wrong to use it in SendClientMessage