SA-MP Forums Archive
Pawno Compile Error - 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)
+--- Thread: Pawno Compile Error (/showthread.php?tid=454316)



Pawno Compile Error - mahardika - 28.07.2013

when i compile my game mode
i have the error
[code]
Code:
C:\Users\user\Desktop\SL-RP\gamemodes\SLRP.pwn(3265) : error 029: invalid expression, assumed zero
C:\Users\user\Desktop\SL-RP\gamemodes\SLRP.pwn(3265) : error 033: array must be indexed (variable "-unknown-")
C:\Users\user\Desktop\SL-RP\gamemodes\SLRP.pwn(3265) : error 036: empty statement
C:\Users\user\Desktop\SL-RP\gamemodes\SLRP.pwn(3265) : fatal error 107: too many error messages on one line
at this line

Code:
forward IsAtTruckDeliveryPoint(playerid);
IsAtTruckDeliveryPoint(playerid)
{
	if(IsPlayerInRangeOfPoint(playerid, 100, 2433.1797, -2099.1008, 12.5360) || IsPlayerInRangeOfPoint(playerid, 100, 2487.9443, -2094.3948, 12.5360) ||
	IsPlayerInRangeOfPoint(playerid, 100, 2111.115722, -1783.749877, 13.188007) || IsPlayerInRangeOfPoint(playerid, 100, 2236.051757, -1690.114990, 13.744861) ||
	IsPlayerInRangeOfPoint(playerid, 100, 2433.1797, -2099.1008, 12.5360) || IsPlayerInRangeOfPoint(playerid, 100, 2406.5991, -2059.3972, 12.5447) ||
	{ return true; }
	return false;
}
Quote:

the error at { return true; } line

i try search at forum but no one fix it plzz help


Re: Pawno Compile Error - MellowHammer - 28.07.2013

pawn Code:
forward IsAtTruckDeliveryPoint(playerid);
IsAtTruckDeliveryPoint(playerid)
{
    if(IsPlayerInRangeOfPoint(playerid, 100, 2433.1797, -2099.1008, 12.5360) || IsPlayerInRangeOfPoint(playerid, 100, 2487.9443, -2094.3948, 12.5360) ||
    IsPlayerInRangeOfPoint(playerid, 100, 2111.115722, -1783.749877, 13.188007) || IsPlayerInRangeOfPoint(playerid, 100, 2236.051757, -1690.114990, 13.744861) ||
    IsPlayerInRangeOfPoint(playerid, 100, 2433.1797, -2099.1008, 12.5360) || IsPlayerInRangeOfPoint(playerid, 100, 2406.5991, -2059.3972, 12.5447))
    { return true; }
    return false;
}
Try that.


Re: Pawno Compile Error - mahardika - 28.07.2013

Quote:
Originally Posted by MellowHammer
View Post
pawn Code:
forward IsAtTruckDeliveryPoint(playerid);
IsAtTruckDeliveryPoint(playerid)
{
    if(IsPlayerInRangeOfPoint(playerid, 100, 2433.1797, -2099.1008, 12.5360) || IsPlayerInRangeOfPoint(playerid, 100, 2487.9443, -2094.3948, 12.5360) ||
    IsPlayerInRangeOfPoint(playerid, 100, 2111.115722, -1783.749877, 13.188007) || IsPlayerInRangeOfPoint(playerid, 100, 2236.051757, -1690.114990, 13.744861) ||
    IsPlayerInRangeOfPoint(playerid, 100, 2433.1797, -2099.1008, 12.5360) || IsPlayerInRangeOfPoint(playerid, 100, 2406.5991, -2059.3972, 12.5447))
    { return true; }
    return false;
}
Try that.
SLOVED,,, thanks
Code:
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase



Re: Pawno Compile Error - kartik - 28.07.2013

--nvm. I was a little shit--