Quote:
|
Originally Posted by saiberfun
pawn Код:
public Draw() { new str[128]; for(new i; i<MAX_PLAYERS; i++) { if(draw[i] == 0) { format(str, sizeof str, "Hours:%d Mins:%d Secs:%d",AccountInfo[i][Hours],AccountInfo[i][Mins],AccountInfo[i][Secs]); Textdraw0 = TextDrawCreate(303.000000,432.000000,str); TextDrawAlignment(Textdraw0,0); TextDrawBackgroundColor(Textdraw0,0x000000ff); TextDrawFont(Textdraw0,3); TextDrawLetterSize(Textdraw0,0.699999,1.200000); TextDrawColor(Textdraw0,0xffffffff); TextDrawSetOutline(Textdraw0,1); TextDrawSetProportional(Textdraw0,1); TextDrawSetShadow(Textdraw0,1); TextDrawShowForPlayer(i,Textdraw0); draw[i] = 1; } if(draw[i] == 1) { TextDrawSetString(Textdraw0,str); } } return 1; }
I've set it like that now...
but it does crash my server 
the timer is set to 1sec aka 1000ms
|
Youre creating a textdraw for all players every 1 sec! Sorry, but thats bullshit! I told you how to do it..