[TextDraw ]Timer and String
#3

hmm sorry I can not understand: (
I now use the translator that you may understand me better
So, I have 4 textdraws defined above in the script:
Код:
new Text:Textdraw0;
new Text:Textdraw1;
new Text:Textdraw2;
new Text:Textdraw3;
The timer starts at OnGameModeInit:
Код:
BeduerfnissTimer = SetTimer("Bedarfs",180000, 1);
And the public Bedarfs for the Timer:
Код:
public Bedarfs()
{
	for(new i = 0; i < MAX_PLAYERS; i++)
	{
	    if(IsPlayerConnected(i))
	    {
	        if(gPlayerLogged[i] == 1)
	        {
		        if(SpielerInfo[i][Textdraw0] < 100)
		        {
		            SpielerInfo[i][Textdraw0]++;
		        }
				if(SpielerInfo[i][Textdraw1] < 100)
				{
				    SpielerInfo[i][Textdraw1]++;
				}
				if(SpielerInfo[i][Textdraw2] < 100)
				{
				    SpielerInfo[i][Textdraw2]++;
				}
				if(SpielerInfo[i][Textdraw3] < 100)
				{
				    SpielerInfo[i][Textdraw3]++;
				}
	        }
	    }
	}
}
What is wrong?
Would be nice if I could give a equal to the code because I only started with the script
Reply


Messages In This Thread
[TextDraw ]Timer and String - by Canna - 14.12.2010, 16:49
Re: [TextDraw ]Timer and String - by Nero_3D - 14.12.2010, 17:31
AW: [TextDraw ]Timer and String - by Canna - 14.12.2010, 22:19
Re: AW: [TextDraw ]Timer and String - by Nero_3D - 14.12.2010, 22:42
AW: [TextDraw ]Timer and String - by Canna - 15.12.2010, 00:25

Forum Jump:


Users browsing this thread: 1 Guest(s)