Textdraw score with loop
#1

Now in my script i have like this:
Код:
forward tdscoretimer(playerid);
new tdscore;


public tdscoretimer(playerid)
{
		tdscore = GetPlayerScore(playerid);
		return 1;
		}


public OnGameModeInit()
{
 SetTimer("tdscoretimer", 5000, true);

	new tds[128];
	format(tds, sizeof(tds), "Score:%d",tdscore);
	Textdraw1 = TextDrawCreate(498.000000, 118.000000, tds);
	

	for(new i; i < MAX_PLAYERS; i ++)
	{
		if(IsPlayerConnected(i))
		{
			TextDrawShowForPlayer(i, Textdraw0);
			TextDrawShowForPlayer(i, Textdraw1);
		}
		}
return 1;
}
I know i failed somewhere, i have no errors, just when i spawn it says "Score:0" whole time.
Reply


Messages In This Thread
Textdraw score with loop - by nejc001 - 10.10.2010, 10:45
Re: Textdraw score with loop - by Hash [NL-RP] - 10.10.2010, 11:37
Re: Textdraw score with loop - by Jeffry - 10.10.2010, 11:56

Forum Jump:


Users browsing this thread: 1 Guest(s)