Wrong with my /setadmin command - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Wrong with my /setadmin command (
/showthread.php?tid=253641)
Wrong with my /setadmin command -
BizzyD - 07.05.2011
DELETE PLZ! SOLVED
Re: Wrong with my /setadmin command -
Joe Staff - 07.05.2011
Get rid of
pawn Код:
user = ReturnUser(tmp);
level = strvalEx(tmp);
EDIT: Also this is redundant code
pawn Код:
if(IsPlayerConnected(user))
{
if(user != INVALID_PLAYER_ID)
Re: Wrong with my /setadmin command -
(SF)Noobanatior - 07.05.2011
"us[32]" user+string? should'nt it be "ui" for user+Integer
Re: Wrong with my /setadmin command -
BizzyD - 07.05.2011
Well as i said :P I am new to sscanf. But i get this warning/error in my server.log when i edited it to ui
Код:
sscanf warning: Format specifier does not match parameter count.
Re: Wrong with my /setadmin command -
BizzyD - 07.05.2011
DELETE PLZ!
Re: Wrong with my /setadmin command -
(SF)Noobanatior - 07.05.2011
same really but i belive it goes
pawn Код:
new user;
new level;
if(sscanf(params, "ui",user,level))
Re: Wrong with my /setadmin command -
BizzyD - 07.05.2011
Works fine now
Thanks
Re: Wrong with my /setadmin command -
(SF)Noobanatior - 07.05.2011
welcome