21.04.2014, 20:06
Hi,
So eventually i want to make a Top Times system however im trying to get the timer to work first.
here is my script
TOP
Under the GO timer (Working)
Then at the end of the race track
Now the problem i have is the message comes up like
"Little Has Reached The End [Time]:Aa♀-♥6○5♦5•W"
It says the name okay but the Time just comes up as random symbols every time... I have not a clue what i am doing wrong i simply want it to come up with the time it took to complete the map.
Any help appreciated!
So eventually i want to make a Top Times system however im trying to get the timer to work first.
here is my script
TOP
Код:
new GameTime[MAX_PLAYERS];
Код:
public go(playerid) { for (new i = 0; i != MAX_PLAYERS; ++i) { GameTime[i]=tickcount(); } return 1; }
Код:
GameTime[playerid]=GetTickCount(); new name[MAX_PLAYER_NAME+1], string[24+MAX_PLAYER_NAME+1]; GetPlayerName(playerid, name, sizeof(name)); format(string,sizeof(string), "%s Has Reached The End [Time: %s ]",name, GameTime); SendClientMessage(playerid, -1, string);
"Little Has Reached The End [Time]:Aa♀-♥6○5♦5•W"
It says the name okay but the Time just comes up as random symbols every time... I have not a clue what i am doing wrong i simply want it to come up with the time it took to complete the map.
Any help appreciated!