Quote:
Originally Posted by nmader
pawn Код:
if(sscanf(params,"ud",pname,adminlvl))return SendClientMessage(playerid,COL_GREEN,"USAGE:/makeadmin [ID] [LEVEL]");
|
Quote:
Originally Posted by XVlaDX
Код:
if(sscanf(params,"dd",pname,adminlvl))return SendClientMessage(playerid,COL_GREEN,"USAGE:/makeadmin [ID] [LEVEL]");
Try that.
|
Quote:
Originally Posted by TenTen
Код:
if(sscanf(params,"ui",pname,adminlvl))return SendClientMessage(playerid,COL_GREEN,"USAGE:/makeadmin [ID] [LEVEL]");
The error is on "ui"
|
d, i and u isn't the problem and using any will make it work, the only difference between u and i that u checks for the name too, if not it returns an invalid id..