SA-MP Forums Archive
Failed to save - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP (https://sampforum.blast.hk/forumdisplay.php?fid=3)
+--- Forum: Bug Reports (https://sampforum.blast.hk/forumdisplay.php?fid=20)
+--- Thread: Failed to save (/showthread.php?tid=600647)



Failed to save - Brewher - 11.02.2016

I have a problem saving and it is this:

"syntax error in the expression, or invalid function call"

Код:
public OnPlayerEnterCheckpoint(playerid)
if (IsPlayerInCheckpoint(playerid))
{
if (IsPlayerInRangeOfPoint(playerid, 10, 1534.1671, -1783.1217, 13.5469))
{
GivePlayerWeapon
}



Re: Failed to save - Karan007 - 11.02.2016

Wrong section!

Here you go:

PHP код:
public OnPlayerEnterCheckpoint(playerid)
{
if (
IsPlayerInCheckpoint(playerid))
{
    if (
IsPlayerInRangeOfPoint(playerid101534.1671, -1783.121713.5469))
{
    
GivePlayerWeapon(playerid/*weapon id here + remove the /**/*/, /*ammo here + remove the /**/*/);
}
}