Quote:
Originally Posted by renato989920
pawn Код:
new Text:Textdraw0[MAX_PLAYERS]; public OnGameModeInit() { for(new i=0; i<MAX_PLAYERS; i++) { Textdraw0[i] = TextDrawCreate(39.000000, 285.000000, "--");//text draw do veiculo TextDrawBackgroundColor(Textdraw0[i], 255); TextDrawFont(Textdraw0[i], 3); TextDrawLetterSize(Textdraw0[i], 0.500000, 1.000000); TextDrawColor(Textdraw0[i], 16711935); TextDrawSetOutline(Textdraw0[i], 1); TextDrawSetProportional(Textdraw0[i], 1); TextDrawTextSize(Textdraw0[i], 187.000000, 549.000000);
//continue o resto... }
|
Por que a loop no OnGameModeInit?
E por que Text:Textdraw0[MAX_PLAYERS] ?
Nгo precisa de loop no OnGameModeInit para criar o TextDraw, e o TextDraw0[MAX_PlAYERS]; nгo й usado em um GameModeInit.
Modo de uso do [MAX_PLAYERS] :
Admin[playerid] = 0; ou if(Admin[playerid] == 1)