12.06.2012, 07:41
Can anyone tell me how to set the player's score to +1 or -1
iam using
but it sets the player score to 1 not +1...
iam using
Код:
SetPlayerHealth(playerid,+1)
SetPlayerHealth(playerid,+1)
SetPlayerScore(playerid, GetPlayerScore(playerid) +1)
public Score()
{
for(new i = 0;i != MAX_PLAYERS;++i)
{
SetPlayerScore(i, GetPlayerScore(i)+1);
}
return 1;
}
stock GivePlayerScore(playerid,score)
{
SetPlayerScore(playerid,GetPlayerScore(playerid)+score);
return 1;
}
public Score()
{
for(new i = 0;i != MAX_PLAYERS;++i)
{
GivePlayerScore(i,1);
}
return 1;
}
pawn Код:
pawn Код:
|