14.12.2010, 22:19
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:
The timer starts at OnGameModeInit:
And the public Bedarfs for the Timer:
What is wrong?
Would be nice if I could give a equal to the code because I only started with the script
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;
Код:
BeduerfnissTimer = SetTimer("Bedarfs",180000, 1);
Код:
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]++; } } } } }
Would be nice if I could give a equal to the code because I only started with the script
