A little Help
#1

How to fix this ?

Код:
(59731) : error 029: invalid expression, assumed zero
(59731) : warning 215: expression has no effect
(59731) : error 001: expected token: ";", but found ")"
(59731) : error 029: invalid expression, assumed zero
(59731) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
This is the line:

Код:
if (IsPlayerInRangeOfPoint(playerid, 2,1388.88,-16.37,1000.98) && GetPlayerVirtualWorld(playerid) == 3) || IsPlayerInRangeOfPoint(playerid, 2,1388.80,-21.52,1000.98) && GetPlayerVirtualWorld(playerid) == 3) || (IsPlayerInRangeOfPoint(playerid, 2,1388.83,-26.15,1000.98) && GetPlayerVirtualWorld(playerid) == 3) // LV
Reply
#2

What are the lines above it?
Reply
#3

try this:

Код:
if (IsPlayerInRangeOfPoint(playerid, 2,1388.88,-16.37,1000.98 && GetPlayerVirtualWorld(playerid) == 3 || IsPlayerInRangeOfPoint(playerid, 2,1388.80,-21.52,1000.98 && GetPlayerVirtualWorld(playerid) == 3 || IsPlayerInRangeOfPoint(playerid, 2,1388.83,-26.15,1000.98 && GetPlayerVirtualWorld(playerid) == 3)
Reply
#4

Код:
  	if(strcmp(cmd, "/flyto", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
	        if(PlayerInfo[playerid][pWanted] == 0)
	        {
				if (IsPlayerInRangeOfPoint(playerid, 2,1388.88,-16.37,1000.98) && GetPlayerVirtualWorld(playerid) == 3) || IsPlayerInRangeOfPoint(playerid, 2,1388.80,-21.52,1000.98) && GetPlayerVirtualWorld(playerid) == 3) || (IsPlayerInRangeOfPoint(playerid, 2,1388.83,-26.15,1000.98) && GetPlayerVirtualWorld(playerid) == 3) // LV
				{
					tmp = strtok(cmdtext, idx);
					if(!strlen(tmp))
					{
						SendClientMessage(playerid, COLOR_WHITE, "USAGE: /flyto [destination number]");
						SendClientMessage(playerid, COLOR_LIGHTBLUE, "|_______ Las Venturas Airport _______|");
						SendClientMessage(playerid, COLOR_GRAD1, "| 1: Los Santos ($5000)		2: San Fierro ($5000) |");
						SendClientMessage(playerid, COLOR_GRAD1, "| 3: Verdant Meadows ($3000)	4: Skydive LS ($6000) |");
						SendClientMessage(playerid, COLOR_GRAD2, "| 5: Skydive LV ($3000)      	6: Skydive SF ($6000) |");
						SendClientMessage(playerid, COLOR_GRAD3, "| 7: Skydive MC ($7500)		8: Skydive RC ($7500) |");
						SendClientMessage(playerid, COLOR_GRAD3, "| 9: Skydive BC ($6000)	    10: Skydive TR ($6000) |");
						return 1;
					}
					new item = strval(tmp);
					if (item == 1 && GetPlayerMoney(playerid) > 4999) // Plane to LS - From LV
					{
						PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
						SafeSetPlayerPos(playerid, 3.7333,23.0483,1199.6012);
						PlayerInfo[playerid][pVirWorld] = 50;
						SafeSetPlayerInterior(playerid, 1);
						SetPlayerVirtualWorld(playerid, 50);
						SetTimerEx("lvls", 100000, false, "i", playerid);
						SendClientMessage(playerid, COLOR_GREY, "* US Airlines: Welcome, Have a Seat - Time to get to LS:    Two Minutes");
						PlayerInfo[playerid][pJet] = 1;
						PlayerInfo[playerid][pInteriorNr] = 28;
						return 1;
etc..
Reply
#5

Uhhh.. try this:

pawn Код:
if (IsPlayerInRangeOfPoint(playerid, 2,1388.88,-16.37,1000.98) && GetPlayerVirtualWorld(playerid) == 3) || IsPlayerInRangeOfPoint(playerid, 2,1388.80,-21.52,1000.98) && GetPlayerVirtualWorld(playerid) == 3) || (IsPlayerInRangeOfPoint(playerid, 2,1388.83,-26.15,1000.98) && GetPlayerVirtualWorld(playerid) == 3))
Reply
#6

Problem is Solved Thanks all for your help!
Reply
#7

Oh my goodness, you just have a "(" too much >.>
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)