SA-MP Forums Archive
help to correct errors - 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: help to correct errors (/showthread.php?tid=332586)



help to correct errors - [HHT]DRON - 08.04.2012

Код:
D:\Games\SAMP сервер\SampDM\gamemodes\SampDMv.1.2.pwn(359) : error 055: start of function body without function header
D:\Games\SAMP сервер\SampDM\gamemodes\SampDMv.1.2.pwn(360) : error 010: invalid function or declaration
D:\Games\SAMP сервер\SampDM\gamemodes\SampDMv.1.2.pwn(362) : error 010: invalid function or declaration
D:\Games\SAMP сервер\SampDM\gamemodes\SampDMv.1.2.pwn(366) : error 010: invalid function or declaration
D:\Games\SAMP сервер\SampDM\gamemodes\SampDMv.1.2.pwn(370) : error 010: invalid function or declaration
D:\Games\SAMP сервер\SampDM\gamemodes\SampDMv.1.2.pwn(177) : warning 204: symbol is assigned a value that is never used: "AutoGate"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


5 Errors.
Код:
forward AGCheck(playerid);
public AGCheck(playerid );
{//error
if(Player[playerid][pVip] < 1)//error
{
if(IsPlayerInRangeOfPoint(playerid,7.0,2185.0354003906,-1779.4771728516,5.715816497802))//error
{
MoveObject(AutoGate,2185.0354003906,-1779.4771728516,5.7158164978027,10);
}
else//error
{
MoveObject(AutoGate,2185.0666503906,-1779.4627685547,15.93656539917,10);
}
return 1;//error
}



Re: help to correct errors - [HHT]DRON - 09.04.2012

help please to correct errors


Re: help to correct errors - Shabi RoxX - 09.04.2012

Here you go :

pawn Код:
forward AGCheck(playerid);
public AGCheck(playerid )// no use of ; here
{
    if(Player[playerid][pVip] < 1)//error
    {
        if(IsPlayerInRangeOfPoint(playerid,7.0,2185.0354003906,-1779.4771728516,5.715816497802))//error
        {
            MoveObject(AutoGate,2185.0354003906,-1779.4771728516,5.7158164978027,10);
        }
        else//error
        {
            MoveObject(AutoGate,2185.0666503906,-1779.4627685547,15.93656539917,10);
        }
    }//forgot one bracket here
    return 1;
}



Re: help to correct errors - BMUK - 09.04.2012

public AGCheck(playerid ) ;

remove that semi colon at the end


Re: help to correct errors - [HHT]DRON - 09.04.2012

thanks all =)


Re: help to correct errors - [HHT]DRON - 09.04.2012

gate don't move