25.09.2017, 18:53
You were doing it wrong ..
Replace it with this ...
Try it .. it should work now.
PHP код:
if(sscanf(params, "uu", bombid,type)) return SendClientMessage(playerid, COLOR_RED, "USAGE: /explode [name/id] [type]"); //This is wrong, "u" is for username/playerid
PHP код:
if(sscanf(params, "ud", bombid,type)) return SendClientMessage(playerid, COLOR_RED, "USAGE: /explode [name/id] [type]"); //Do it like this, "d" is for integer