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