SetPlayerScore
#1

Can anyone tell me how to set the player's score to +1 or -1

iam using
Код:
SetPlayerHealth(playerid,+1)
but it sets the player score to 1 not +1...
Reply
#2

pawn Код:
SetPlayerScore(playerid, GetPlayerScore(playerid) +1)
you can change +1 to -1 too.
Reply
#3

Ok Thank you very much..
Reply
#4

Something like this?

pawn Код:
public Score()  
{  
for(new i = 0;i != MAX_PLAYERS;++i)  
{  
    SetPlayerScore(i, GetPlayerScore(i)+1);  
}  
return 1;  
}
It gives player in every minute 1 score point.
Reply
#5

Quote:
Originally Posted by martin3644
Посмотреть сообщение
Something like this?
At least look at the thread's date.
Reply
#6

Quote:
Originally Posted by Mr.Anonymous
Посмотреть сообщение
At least look at the thread's date.
HAHA, FAILED. Sorry. My bad!
Reply
#7

pawn Код:
stock GivePlayerScore(playerid,score)
{
SetPlayerScore(playerid,GetPlayerScore(playerid)+score);
return 1;
}
add this stock into your gm, and you'll be able to use GivePlayerScore
pawn Код:
public Score()  
{  
for(new i = 0;i != MAX_PLAYERS;++i)  
{  
    GivePlayerScore(i,1);  
}  
return 1;  
}
Reply
#8

Quote:
Originally Posted by mineralo
Посмотреть сообщение
add this stock into your gm, and you'll be able to use GivePlayerScore
AT LEAST LOOK AT THE PREVIOUS COMMENTS!
Reply
#9

Quote:
Originally Posted by mineralo
Посмотреть сообщение
pawn Код:
stock GivePlayerScore(playerid,score)
{
SetPlayerScore(playerid,GetPlayerScore(playerid)+score);
return 1;
}
add this stock into your gm, and you'll be able to use GivePlayerScore
pawn Код:
public Score()  
{  
for(new i = 0;i != MAX_PLAYERS;++i)  
{  
    GivePlayerScore(i,1);  
}  
return 1;  
}
Anonymouse nvm him . He just got 2 pouints .

1- Posting on old topics where has been already given an answer
2- Bumping

Stop spamming . It is 1-2 years old thread
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)