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]);
}
if(DOF2_FileExists(File)) {
for(new i=0; i != 22; i++){
PlayerTextDrawShow(playerid, Text_Login[i]);
}
} else {
Pfor(new i=0; i != 23; i++){
PlayerTextDrawShow(playerid, Text_Login[i]);
}
}
for(new i; i != 24; i++) {
if(DOF2_FileExists(File)) {
PlayerTextDrawShow(playerid, Text_Login[i]);
} else {
PlayerTextDrawShow(playerid, Text_Register[i]);
}
pawn Код:
|
if(DOF2_FileExists(GetDataPlayer(playerid))) for(new i; i != 23; i++) PlayerTextDrawShow(playerid, Text_Login[playerid][i]);
else {
for(new i; i != 24; i++) {
if(i == 21) continue;
PlayerTextDrawShow(playerid, Text_Login[playerid][i]);
}
}