ERROR: sscanf2 argument type mismatch - 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: sscanf2 argument type mismatch (
/showthread.php?tid=659596)
ERROR: sscanf2 argument type mismatch -
GameOvr - 08.10.2018
Actually, I can't find what is wrong here,
Can some one tell me what I am doing wrong
Код:
new name[MAX_PLAYER_NAME];
if(sscanf(params, "s[24]", name)) return SendClientMessage(playerid, COLOR_USAGE, "* USAGE:/ips [name]");
error:
Код:
C:\Users\User\Desktop\IPDB.pwn(51) : error 035: argument type mismatch (argument 1)
Re: ERROR: sscanf2 argument type mismatch -
v1k1nG - 08.10.2018
Is it a command? Because
PHP код:
CMD:s(playerid, params[]){
new name[MAX_PLAYER_NAME];
if(sscanf(params, "s[24]", name)) return SendClientMessage(playerid, -1, "* USAGE:/ips [name]");
return 1;
}
isn't giving me any error.
Re: ERROR: sscanf2 argument type mismatch -
ReD_HunTeR - 08.10.2018
show 2-3 more lines from above and below
Re: ERROR: sscanf2 argument type mismatch -
GameOvr - 08.10.2018
tHANKS GUYS AVYWAY I FOUND THE PROBLEM I FORGOT THAT PARAMS IS A STRING xD
Код:
CMD:ips(playerid, params[])