[unsolved] - very easy! (i think:P)
#2

I suggest you to use zcmd and sscanf
It will look like:
pawn Код:
cmd(givescore, playerid, params[])
{
  if(IsPlayerAdmin(playerid))
  {
    new id;
    if(sscanf(params,"i",id)) SendClientMessage(playerid, 0xFFFFFFFF, "USAGE: /givescore [id]");
    else SetPlayerScore(id,GetPlayerScore(id)+1);
    return 1;
  }
  return 0;
}
Reply


Messages In This Thread
[unsolved] - very easy! (i think:P) - by PANNA - 05.11.2009, 07:45
Re: [unsolved] - very easy! (i think:P) - by CracK - 05.11.2009, 07:55
Re: [unsolved] - very easy! (i think:P) - by PANNA - 05.11.2009, 08:05
Re: [unsolved] - very easy! (i think:P) - by CracK - 05.11.2009, 08:11
Re: [unsolved] - very easy! (i think:P) - by Peter_Corneile - 05.11.2009, 09:12
Re: [unsolved] - very easy! (i think:P) - by Tony_Montana - 05.11.2009, 09:14
Re: [unsolved] - very easy! (i think:P) - by saiberfun - 05.11.2009, 09:19

Forum Jump:


Users browsing this thread: 2 Guest(s)