what do I need to add
#5

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


Messages In This Thread
what do I need to add - by saffierr - 17.07.2014, 00:05
Re: what do I need to add - by Battlezone - 17.07.2014, 00:19
Re: what do I need to add - by Jack_Leslie - 17.07.2014, 00:20
Re: what do I need to add - by saffierr - 17.07.2014, 00:38
Re: what do I need to add - by Jack_Leslie - 17.07.2014, 00:43
Re: what do I need to add - by saffierr - 17.07.2014, 00:49
Re: what do I need to add - by saffierr - 17.07.2014, 00:53
Re: what do I need to add - by Jack_Leslie - 17.07.2014, 00:55

Forum Jump:


Users browsing this thread: 1 Guest(s)