Spawn dialog 1 error
#1

Please help with this error
Код:
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.
The commande on which the error is
Код:
// 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;
Reply
#2

Na kojoj liniji ti izbacuje error (neda mi se na eng haha)
Reply
#3

Quote:
Originally Posted by TonyVk
Посмотреть сообщение
Na kojoj liniji ti izbacuje error (neda mi se na eng haha)
Haha,na ovoj ovdje
Код:
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");
Reply
#4

Cemu ti sluzi ovo \r iskreno nezz da to sta radi sa dialogom,a mislim da je to problem
Reply
#5

Quote:
Originally Posted by TonyVk
Посмотреть сообщение
Cemu ti sluzi ovo \r iskreno nezz da to sta radi sa dialogom,a mislim da je to problem
To sluzi tom da se dijalog poslaze ovako npr:

Dijalog1
Dijalog2
Dijalog3
Dijalog4

Tako je po cijeloj skripti za svaki spawn
Reply
#6

Da prebacis svaku od tih lokacija u novi red ide \n

E da naso sam sad na netu pise da koristis ili \r ili \n
Reply
#7

Quote:
Originally Posted by TonyVk
Посмотреть сообщение
Da prebacis svaku od tih lokacija u novi red ide \n
Zamjenio sam bio r sa n ali opet isto
Reply
#8

Naso sam problem,na ovom mjestu imas \ i nista iza nje VW Valley\r\Los Santos stavi si isto n il r svejedno je
Reply
#9

Only English is allowed here if you want to speak any other language go to languages section
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)