help to correct errors
#1

Код:
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
}
Reply
#2

help please to correct errors
Reply
#3

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

public AGCheck(playerid ) ;

remove that semi colon at the end
Reply
#5

thanks all =)
Reply
#6

gate don't move
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)