Making the Kills == Score
#1

Hi!

I have this variable (i think its called that):

pawn Код:
new PlayerKills[MAX_PLAYERS];
How can i turn that variable and make it the score too...?
Reply
#2

pawn Код:
SetPlayerScore(playerid, PlayerKills[playerid]);
where ever you update the PK var you should do this also.
Reply
#3

<DELETE>
Reply
#4

Is it possible to set a timer which updates the score every second or so?
Reply
#5

Quote:
Originally Posted by Tigerbeast11
Is it possible to set a timer which updates the score every second or so?
Use a timer of one second,

SetTimer("UpdateScore", 1000, 1);

Than inside the UpdateScore function do SetPlayerScore(playerid, GetPlayerScore(playerid)+1); - Make sure the UpdateScore function is a public.
Reply
#6

I already done it!

I was checking if that is "allowed"
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)