SA-MP Forums Archive
error 036 error 001 - 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: error 036 error 001 (/showthread.php?tid=570394)



error 036 error 001 - tboysamp - 09.04.2015

Код:
stock IsAtImpoundingPoint(playerid)
{
	if(IsPlayerConnected(playerid))
	{
		for(new i=1; i < MAX_IMPOUND; i++)
		{
			if(ImpoundCreated[i]); //error 036: empty statement
			{
				if(IsPlayerInRangeOfPoint(playerid, 15.0, ImpoundPos[i][0], ImpoundPos[i][1], ImpoundPos[i][2]);//error 001: expected token: ")", but found ";" //error 036: empty statement
			}
		}
	}
	return 0;
}



AW: error 036 error 001 - Mencent - 09.04.2015

Hello!

You have to write it so:
PHP код:
stock IsAtImpoundingPoint(playerid)
{
    if(
IsPlayerConnected(playerid))
    {
        for(new 
i=1MAX_IMPOUNDi++)
        {
            if(
ImpoundCreated[i]) //error 036: empty statement
            
{
                if(
IsPlayerInRangeOfPoint(playerid15.0ImpoundPos[i][0], ImpoundPos[i][1], ImpoundPos[i][2])//error 001: expected token: ")", but found ";" //error 036: empty statement
            
}
        }
    }
    return 
0;

Mencent