Quote:
Originally Posted by SpikeCompiler
Opa amigo, nгo sei resolver seu problema, porйm notei algo no seu sistema, й bom para vocк melhorar.
PHP код:
TextDrawShowForPlayer(playerid, Textdraw0);
TextDrawShowForPlayer(playerid, Textdraw1);
TextDrawShowForPlayer(playerid, Textdraw2);
TextDrawShowForPlayer(playerid, Textdraw3);
TextDrawShowForPlayer(playerid, Textdraw4);
Com certeza, vocк crio 4 variбveis assim:
PHP код:
new Text:Textdraw1;
new Text:Textdraw2;
new Text:Textdraw3;
new Text:Textdraw4;
Nгo й mesmo? otimize utilizando apenas uma variбvel:
PHP код:
new Text:Textdraw[4];
TextDrawShowForPlayer(playerid, Textdraw[0]);
TextDrawShowForPlayer(playerid, Textdraw[1]);
TextDrawShowForPlayer(playerid, Textdraw[2]);
TextDrawShowForPlayer(playerid, Textdraw[3]);
<3
|
Ainda dб para otimizar mais. Como por exemplo:
PHP код:
new Text:Textdraw[4];
for(new i = 0; i < 4; i++) { TextDrawShowForPlayer(playerid, Textdraw[i]); }