Adding score
#6

Try this.

pawn Код:
stock GivePlayerScore(playerid, score)
{
  if(playerid == INVALID_PLAYER_ID) return -1;
   new amount = GetPlayerScore(playerid);
   SetPlayerScore(playerid, amount+score);
   return 1;
}
If the player isn't connected "-1" is returned. Otherwise, 1 will be returned. Should work fine.
Reply


Messages In This Thread
Adding score - by GunZ75 - 30.09.2014, 17:39
Re: Adding score - by YanLanger - 30.09.2014, 17:42
Re : Re: Adding score - by DaTa[X] - 30.09.2014, 18:44
Re: Adding score - by YanLanger - 30.09.2014, 18:47
Re: Adding score - by iSkate - 30.09.2014, 20:28
Re: Adding score - by Abagail - 30.09.2014, 20:31
Re: Adding score - by FloxX - 01.10.2014, 06:41

Forum Jump:


Users browsing this thread: 1 Guest(s)