17.12.2016, 18:58
2 closed brackets are missing - the mistake is here:
Scroll down to see the marked (in red) code.
Code:
CMD:duty(playerid, params[]) { new string[128], playern[MAX_PLAYER_NAME], str[128]; new factid = PlayerInfo[playerid][pMember]; GetPlayerName(playerid, playern, MAX_PLAYER_NAME); if (factid == 0 || factid > 5) { SendClientMessage(playerid, -1, "Factiunea ta nu dispune de aceasta comanda / nu faci parte dintr-o factiune!"); return 1; } else if (factid == 1) { SendClientMessage(playerid, -1, "troll"); } else if (factid == 2) { if (IsPlayerInRangeOfPoint(playerid, 50.00, 1171.0372, -1305.8285, -44.0648)) { if (PlayerInfo[playerid][pDuty] == 0) { PlayerInfo[playerid][pDuty] = 1; format(str, sizeof(str), "{f07a7a}HQ: %s %s este acum disponibil!", GetEMSRank(playerid), playern); SendFactionMessage(-1, 2, str); format(string, sizeof(string), "* %s isi ia echipamentul din dulap.", GetPlayerNameEx(playerid)); ProxDetector(20.0, playerid, string, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE); } else if (PlayerInfo[playerid][pDuty] == 1) { PlayerInfo[playerid][pDuty] = 0; format(str, sizeof(str), "{f07a7a}HQ: %s %s este acum indisponibil!", GetEMSRank(playerid), playern); SendFactionMessage(-1, 2, str); format(string, sizeof(string), "* %s isi lasa echipamentul din dulap.", GetPlayerNameEx(playerid)); ProxDetector(5.0, playerid, string, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE); } } } else if (factid == 4) { if (IsPlayerInRangeOfPoint(playerid, 10.00, 256.0068, 1778.0643, 701.0859)) { if (PlayerInfo[playerid][pDuty]) return 1; } CMD: repair(playerid, params[]) { if (PlayerInfo[playerid][pMember] != 5) return SCM(playerid, -1, "Nu esti in LSA."); if (!IsPlayerInAnyVehicle(playerid)) return SCM(playerid, -1, "Nu esti intr-o masina."); new vehicleid = GetPlayerVehicleID(playerid); RepairVehicle(vehicleid); return 1; }