Quote:
Originally Posted by saffierr
Thanks guys, See I knew I missed something, in this case I missed if(!IsPlayerConnected(target))
|
You didn't really miss anything, what you had should of worked, but the reason it didn't was due to your sscanf.
pawn Код:
new target, id;
if(sscanf(params, "u", target, id)) return SendClientMessage(playerid, COLOR_WARN, "USAGE: /resetweapon [ID]");
You have 'target' and 'id', then you only define 'target' in your sscanf. You didn't need the 'id', you only needed to use one. So either 'target' or 'id', not both, as there's only one parameter to this command which is one player. So if you just used either 'target' or 'id' instead of both, it would of worked.