16.07.2015, 15:33
I repair that. It should look like that:
Not like that-..
Код:
else if(strcmp(x_vehicle, "register", true) == 0) { if (PlayerToPoint(20.0,playerid,2521.7505,-1546.5853,24.0859) || PlayerToPoint(20.0,playerid,1314.6570,-863.1125,39.3507)) { if(!IsPlayerInAnyVehicle(playerid)) { if(GetPlayerCash(playerid) < 300) { SendClientMessage(playerid, COLOR_GREY, "Ai nevoie de 300$ pentru a inmatricula masina."); return 1; } if (PlayerInfo[playerid][pFaction] == 8) { ShowPlayerDialog(playerid,572,DIALOG_STYLE_INPUT,"{00ABFF}Numar de inmatriculare","{FFFFFF}Introdu numarul.","Ok","Refuza"); } else { SendClientMessage(playerid, COLOR_GREY, "Nu esti membru LSVR"); return 1; } return 1; } else { SendClientMessage(playerid, COLOR_GRAD2, "Trebuie sa fi intr-o masina pentru a folosi aceasta comanda."); return 1; } } }
Код:
else if(strcmp(x_vehicle, "register", true) == 0) { if (PlayerToPoint(20.0,playerid,2521.7505,-1546.5853,24.0859) || PlayerToPoint(20.0,playerid,1314.6570,-863.1125,39.3507)) { if(!IsPlayerInAnyVehicle(playerid)) { return 1; } else { SendClientMessage(playerid, COLOR_GRAD2, "Trebuie sa fi intr-o masina pentru a folosi aceasta comanda."); return 1; } if(GetPlayerCash(playerid) < 300) { SendClientMessage(playerid, COLOR_GREY, "Ai nevoie de 300$ pentru a inmatricula masina."); return 1; } if (PlayerInfo[playerid][pFaction] == 8) { ShowPlayerDialog(playerid,572,DIALOG_STYLE_INPUT,"{00ABFF}Numar de inmatriculare","{FFFFFF}Introdu numarul.","Ok","Refuza"); } else { SendClientMessage(playerid, COLOR_GREY, "Nu esti membru LSVR"); return 1; } } }