10.07.2015, 08:06
Please help with this error
The commande on which the error is
Код:
C:\Users\Korisnik\Desktop\Yugoslavia Trucking v.0.3.7\include\PlayerCommands.inc(2379) : error 027: invalid character constant Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
Код:
// Lets the player choose where he wants to respawn (costs $200) COMMAND:izbavi(playerid, params[]) { // Send the command to all admins so they can see it SendAdminText(playerid, "/izbavi", params); // Check if the player has logged in if (APlayerData[playerid][LoggedIn] == true) { // Check if the player has a wanted level of less than 3 if (GetPlayerWantedLevel(playerid) < 3) { // Check if the player isn't in jail if (APlayerData[playerid][PlayerJailed] == 0) { if (APlayerData[playerid][JobStarted] == false) { // Make sure you can't use "/izbavi" when you're inside a vehicle (doesn't respawn you at the requested coords // and puts a random item (bottle, sigarette, ...) in the player's hands if (GetPlayerVehicleID(playerid) == 0) { // Create a dialog based on the player's class switch (APlayerData[playerid][PlayerClass]) { case ClassTruckDriver: // Ask where the trucker player wants to respawn ShowPlayerDialog(playerid, DialogRescue, DIALOG_STYLE_LIST, "Odaberi Lokaciju:", "Fallen Tree Depot\r\nFlint Trucking Depot\r\nLVA Freight Depot\r\nDoherty Depot\r\nEl Corona Depot\r\nLas Payasdas Depot\r\nQuarry Top\r\nShady Creek Depot\r\nBayside SeaPort\r\nKacc-Military fuels\r\nBone Country", "Spawn", "Cancel"); case ClassBusDriver: // Ask where the busdriver wants to respawn ShowPlayerDialog(playerid, DialogRescue, DIALOG_STYLE_LIST, "Odaberi Lokaciju:", "Los Santos\r\nSan Fierro\r\nLas Venturas", "Spawn", "Cancel"); case ClassPilot: // Ask where the pilot wants to respawn ShowPlayerDialog(playerid, DialogRescue, DIALOG_STYLE_LIST, "Odaberi Lokaciju:", "Los Santos\r\nSan Fierro\r\nLas Venturas\r\nVerdant Meadows\r\nCroatia Island", "Spawn", "Cancel"); case ClassPolice: // Ask where the police player wants to respawn ShowPlayerDialog(playerid, DialogRescue, DIALOG_STYLE_LIST, "Odaberi Lokaciju:", "Los Santos\r\nSan Fierro\r\nLas Venturas\r\nAngel Pine\r\nDellimore\r\nEl Quebrados sheriff(LV Desert)", "Spawn", "Odustani"); case ClassCourier: // Ask where the courier player wants to respawn ShowPlayerDialog(playerid, DialogRescue, DIALOG_STYLE_LIST, "Odaberi Lokaciju:", "Los Santos\r\nSan Fierro\r\nLas Venturas", "Spawn", "Cancel"); case ClassMafia: // Ask where the Mafia player wants to respawn ShowPlayerDialog(playerid, DialogRescue, DIALOG_STYLE_LIST, "Odaberi Lokaciju:", "Mafia LS Hideout\r\nMafia LV Hideout\r\nMafia Desert Hideout", "Spawn", "Cancel"); case ClassAssistance: // Ask where the police player wants to respawn ShowPlayerDialog(playerid, DialogRescue, DIALOG_STYLE_LIST, "Odaberi Lokaciju:", "Los Santos VW Valley\r\Los Santos Country\r\nSan Fierro Wang's Cars\r\nLas Venturas Base", "Spawn", "Cancel"); case ClassMilitary: // Ask where the police player wants to respawn ShowPlayerDialog(playerid, DialogRescue, DIALOG_STYLE_LIST, "Odaberi Lokaciju:", "Los Santos\r\nSan Fierro Brod\r\nSan Fierro\r\nLas Venturas Base(Area 51)", "Spawn", "Cancel"); case ClassRibar: ShowPlayerDialog(playerid, DialogRescue, DIALOG_STYLE_LIST, "Odaberi Lokaciju:", "Los Santos\r\nJuzni Los Santos\r\nLas Venturas \r\nLas Venturas 2", "Spawn", "Cancel"); } } else SendClientMessage(playerid, 0xFF0000FF, "Nemoћeљ koristi '/izbavi' dok si u vozilu"); // "/rescue" doesn't work inside a vehicle } else SendClientMessage(playerid, 0xFF0000FF, "Nemoћeљ koristi '/izbavi' dok si radiљ posao"); // "/rescue" doesn't work during a job } else SendClientMessage(playerid, 0xFF0000FF, "Nemoћeљ koristi '/izbavi' dok si u zatvoru"); } else SendClientMessage(playerid, 0xFFFFFFFF, "{FF0000}Nemoћeљ koristi '/izbavi' dok si traћen"); } else return 0; // Let the server know that this was a valid command return 1;