SA-MP Forums Archive
Small problem. - 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: Small problem. (/showthread.php?tid=361797)



Small problem. - Peter Alex - 22.07.2012

I have a problem:
Quote:

E:\SA-MP Server\gamemodes\Server.pwn(83) : error 001: expected token: ",", but found "-rational value-"
E:\SA-MP Server\gamemodes\Server.pwn(83) : error 001: expected token: ";", but found ")"
E:\SA-MP Server\gamemodes\Server.pwn(83) : error 029: invalid expression, assumed zero
E:\SA-MP Server\gamemodes\Server.pwn(83) : fatal error 107: too many error messages on one line

Код:
	if (strcmp("/enter", cmdtext, true, 10) == 0)
	{
    if(IsPlayerInRangeOfPoint(playerid, 1.0, 172.66, -152.10, 1.72)) // checks if in range of the /enter point
    {
        SetPlayerPos(playerid, 170.75, -153.94, 1.81); //Sets there new position
        RemoveBuildingForPlayer(playerid, 13200, 158.3594, -176.3047, 5.5703, 0.25);
		RemoveBuildingForPlayer(playerid, 12923, 158.3594, -176.3047, 5.5703, 0.25);
        return 1;
    }
    else if(IsPlayerInRangeOfPoint(playerid, 7.0 170.85, -153.85, 1.48)) // Checks if near the exit door
    {
        SetPlayerPos(playerid, 172.24, -152.26, 1.81);
    }
    return 1;
}



Re: Small problem. - Kindred - 22.07.2012

Show us what line it is. All of it looks fine.


Re: Small problem. - Peter Alex - 22.07.2012

This one:
else if(IsPlayerInRangeOfPoint(playerid, 7.0 170.85, -153.85, 1.4) // Checks if near the exit door


Re: Small problem. - Kindred - 22.07.2012

pawn Код:
else if(IsPlayerInRangeOfPoint(playerid, 7.0 170.85, -153.85, 1.48))
You forgot a comma in between the 7.0 and 170.85.

Here:

pawn Код:
else if(IsPlayerInRangeOfPoint(playerid, 7.0, 170.85, -153.85, 1.48))



Re: Small problem. - Peter Alex - 22.07.2012

Thanks again.