26.06.2013, 02:22
Hello i'm geting some errors in command(s)
warning 217: loose indentation
warning 217: loose indentation
Код:
error 014: invalid statement; not in switch error 029: invalid expression, assumed zero warning 209: function "cmd_wmenu" should return a value error 010: invalid function or declaration error 010: invalid function or declaration error 010: invalid function or declaration error 010: invalid function or declaration Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 6 Errors.
Код:
COMMAND:wmenu(playerid, params[]) { SendAdminText(playerid, "/wmenu", params); if (APlayerData[playerid][LoggedIn] == true) { if (APlayerData[playerid][JobStarted] == false) { switch (APlayerData[playerid][PlayerClass]) { case Trucker: { new Convoy = APlayerData[playerid][ConvoyID]; if ((APlayerData[playerid][InConvoy] == true) && (AConvoys[Convoy][Members][0] != playerid)) { SendClientMessage(playerid, 0xFF0000FF, "You not the leader of your convoy, you cannot start a job"); return 1; } if (GetPlayerVehicleSeat(playerid) == 0) { switch (GetVehicleModel(GetPlayerVehicleID(playerid))) { case VehicleFlatbed, VehicleCementTruck, VehicleBenson: if (APlayerData[playerid][TruckerLicense] == 1) ShowPlayerDialog(playerid, DialogTruckerJobMethod, DIALOG_STYLE_LIST, "Select method:", "Setup your own load and route\r\nAuto assigned load", "Select", "Cancel"); else Trucker_StartRandomJob(playerid); case VehicleLineRunner, VehicleTanker, VehicleRoadTrain: if(IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid))) if (APlayerData[playerid][TruckerLicense] == 1) ShowPlayerDialog(playerid, DialogTruckerJobMethod, DIALOG_STYLE_LIST, "Select method:", "Setup your own load and route\r\nAuto assigned load", "Select", "Cancel"); else Trucker_StartRandomJob(playerid); else SendClientMessage(playerid, 0xFF0000FF, "You need a trailer to start a job"); default: SendClientMessage(playerid, 0xFF0000FF, "You need to be the driver of a trucking vehicle to start a job"); } } else SendClientMessage(playerid, 0xFF0000FF, "You need to be the driver of a trucking vehicle to start a job"); } } } default: SendClientMessage(playerid, 0xFF0000FF, "Your class cannot do any jobs"); } } else SendClientMessage(playerid, 0xFF0000FF, "You're already doing a job"); } else return 0; return 1; }