A little Help - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: A little Help (
/showthread.php?tid=255008)
A little Help -
Miguel_Teixeira - 13.05.2011
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
Re: A little Help -
Famalamalam - 13.05.2011
What are the lines above it?
Re: A little Help -
BizzyD - 13.05.2011
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)
Re: A little Help -
Miguel_Teixeira - 13.05.2011
Код:
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..
Re: A little Help -
Famalamalam - 13.05.2011
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))
Re: A little Help -
Miguel_Teixeira - 14.05.2011
Problem is Solved Thanks all for your help!
Re: A little Help -
Biesmen - 14.05.2011
Oh my goodness, you just have a "(" too much >.>