Help with timer !
#4

Addscore1 + SetPlayerScoreEx

Quote:

forward AddScore1(playerid);
public AddScore1(playerid)
{
SetPlayerScoreEx(playerid, GetPlayerScore(playerid)+1);
return 1;
}

forward SetPlayerScoreEx(playerid,score);
public SetPlayerScoreEx(playerid,score)
{
new string[128];
Account[playerid][Score] = score;
SetPlayerScore(playerid,score);
if(score < 10) format(string,sizeof(string),"S0000000%d",score);
else if(score < 100 && score > 9) format(string,sizeof(string),"S000000%d",score);
else if(score < 1000 && score > 99) format(string,sizeof(string),"S00000%d",score);
else if(score < 10000 && score > 999) format(string,sizeof(string),"S0000%d",score);
else if(score < 100000 && score > 9999) format(string,sizeof(string),"S0000%d",score);
else if(score < 1000000 && score > 99999) format(string,sizeof(string),"S000%d",score);
else if(score < 10000000 && score > 999999) format(string,sizeof(string),"S00%d",score);
else if(score < 100000000 && score > 9999999) format(string,sizeof(string),"S0%d",score);
else if(score < 1000000000 && score > 99999999) format(string,sizeof(string),"S%d",score);
TextDrawSetString(TextScore[playerid],string);
}

Reply


Messages In This Thread
Help with timer ! - by Gotti_ - 17.04.2011, 10:53
Re: Help with timer ! - by iJumbo - 17.04.2011, 10:55
Re: Help with timer ! - by Stigg - 17.04.2011, 10:56
Re: Help with timer ! - by Gotti_ - 17.04.2011, 10:57
Re: Help with timer ! - by Stigg - 17.04.2011, 10:59
Re: Help with timer ! - by Gotti_ - 17.04.2011, 11:02
Re: Help with timer ! - by Stigg - 17.04.2011, 11:04
Re: Help with timer ! - by Gotti_ - 17.04.2011, 11:07
Re: Help with timer ! - by Stigg - 17.04.2011, 11:10
Re: Help with timer ! - by iJumbo - 17.04.2011, 11:10

Forum Jump:


Users browsing this thread: 4 Guest(s)