CMD:stats problem.
#4

Quote:
Originally Posted by x96664
Посмотреть сообщение
Why not targetid instead or reciever ?
Would renaming it really do something?
Well, still.. re-named, nothing changed..
As i said earlier, i have a feeling that I'm missing something, but i can't notice it.

EDIT:

Quote:
Originally Posted by Skimmer
Посмотреть сообщение
You cannot use a string inside an array variable.

Use id instead reciever.

I also noticed another Bug. In fact you're trying to read the targetname, before checking sscanf.

pawn Код:
GetPlayerName(id,recievername,sizeof(recievername));
Should stay below sscanf.

This is right

pawn Код:
if(sscanf(params, "u", id)) return SendClientMessage(playerid, COLOR_RED,"[USAGE] - /stats [ID]");
GetPlayerName(id,recievername,sizeof(recievername));
Thanks, this worked.
Reply


Messages In This Thread
CMD:stats problem. - by Kyance - 17.11.2013, 17:16
Re: CMD:stats problem. - by x96664 - 17.11.2013, 17:21
AW: CMD:stats problem. - by Skimmer - 17.11.2013, 17:24
Re: CMD:stats problem. - by Kyance - 17.11.2013, 17:25
Re: CMD:stats problem. - by x96664 - 17.11.2013, 17:51

Forum Jump:


Users browsing this thread: 1 Guest(s)