Wrong with my /setadmin command
#1

DELETE PLZ! SOLVED
Reply
#2

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)
Reply
#3

"us[32]" user+string? should'nt it be "ui" for user+Integer
Reply
#4

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.
Reply
#5

DELETE PLZ!
Reply
#6

same really but i belive it goes
pawn Код:
new user;
new level;
if(sscanf(params, "ui",user,level))
Reply
#7

Works fine now Thanks
Reply
#8

welcome
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)