Race Timer..
#1

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
Код:
 new GameTime[MAX_PLAYERS];
Under the GO timer (Working)
Код:
public go(playerid)
{
       for (new i = 0; i != MAX_PLAYERS; ++i)
       {
        GameTime[i]=tickcount();
        }
       return 1;
}
Then at the end of the race track

Код:
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);
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!
Reply


Messages In This Thread
Race Timer.. - by KingyKings - 21.04.2014, 20:06
Re: Race Timer.. - by Konstantinos - 21.04.2014, 20:23
Re: Race Timer.. - by KingyKings - 21.04.2014, 20:40

Forum Jump:


Users browsing this thread: 1 Guest(s)