08.11.2015, 07:04
Hello,
I returned to program pawn a few days and I'm trying to make a code but can not find a solution to optimize it if someone can help me with what function to use for this would be great.
I need to show the player some PlayerTextDraw, but as it is registered or not, takes leave of showing a PlayerTextDraw, as are many did a loop but in time to remove this single PlayerTextDraw not know how to do.
Not optimally, I not found a solution to my problem to optimize it.
Sorry for my english.
I returned to program pawn a few days and I'm trying to make a code but can not find a solution to optimize it if someone can help me with what function to use for this would be great.
I need to show the player some PlayerTextDraw, but as it is registered or not, takes leave of showing a PlayerTextDraw, as are many did a loop but in time to remove this single PlayerTextDraw not know how to do.
Not optimally, I not found a solution to my problem to optimize it.
PHP код:
for(new i; i != 24; i++) {
if(DOF2_FileExists(File)) {
PlayerTextDrawShow(playerid, Text_Login[0]);
PlayerTextDrawShow(playerid, Text_Login[1]);
PlayerTextDrawShow(playerid, Text_Login[2]);
PlayerTextDrawShow(playerid, Text_Login[3]);
PlayerTextDrawShow(playerid, Text_Login[4]);
PlayerTextDrawShow(playerid, Text_Login[5]);
PlayerTextDrawShow(playerid, Text_Login[6]);
PlayerTextDrawShow(playerid, Text_Login[7]);
PlayerTextDrawShow(playerid, Text_Login[8]);
PlayerTextDrawShow(playerid, Text_Login[9]);
PlayerTextDrawShow(playerid, Text_Login[10]);
PlayerTextDrawShow(playerid, Text_Login[11]);
PlayerTextDrawShow(playerid, Text_Login[12]);
PlayerTextDrawShow(playerid, Text_Login[13]);
PlayerTextDrawShow(playerid, Text_Login[14]);
PlayerTextDrawShow(playerid, Text_Login[15]);
PlayerTextDrawShow(playerid, Text_Login[16]);
PlayerTextDrawShow(playerid, Text_Login[17]);
PlayerTextDrawShow(playerid, Text_Login[18]);
PlayerTextDrawShow(playerid, Text_Login[19]);
PlayerTextDrawShow(playerid, Text_Login[20]);
PlayerTextDrawShow(playerid, Text_Login[21]);
PlayerTextDrawShow(playerid, Text_Login[22]);
//PlayerTextDrawShow(playerid, Text_Login[i]);
} else {
PlayerTextDrawShow(playerid, Text_Login[0]);
PlayerTextDrawShow(playerid, Text_Login[1]);
PlayerTextDrawShow(playerid, Text_Login[2]);
PlayerTextDrawShow(playerid, Text_Login[3]);
PlayerTextDrawShow(playerid, Text_Login[4]);
PlayerTextDrawShow(playerid, Text_Login[5]);
PlayerTextDrawShow(playerid, Text_Login[6]);
PlayerTextDrawShow(playerid, Text_Login[7]);
PlayerTextDrawShow(playerid, Text_Login[8]);
PlayerTextDrawShow(playerid, Text_Login[9]);
PlayerTextDrawShow(playerid, Text_Login[10]);
PlayerTextDrawShow(playerid, Text_Login[11]);
PlayerTextDrawShow(playerid, Text_Login[12]);
PlayerTextDrawShow(playerid, Text_Login[13]);
PlayerTextDrawShow(playerid, Text_Login[14]);
PlayerTextDrawShow(playerid, Text_Login[15]);
PlayerTextDrawShow(playerid, Text_Login[16]);
PlayerTextDrawShow(playerid, Text_Login[17]);
PlayerTextDrawShow(playerid, Text_Login[18]);
PlayerTextDrawShow(playerid, Text_Login[19]);
PlayerTextDrawShow(playerid, Text_Login[20]);
PlayerTextDrawShow(playerid, Text_Login[22]);
PlayerTextDrawShow(playerid, Text_Login[23]);
//PlayerTextDrawShow(playerid, Text_Login[i]);
}