Pawno Compile Error
#1

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
Reply
#2

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.
Reply
#3

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
Reply
#4

--nvm. I was a little shit--
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)