PDA

View Full Version : help to correct errors


[HHT]DRON
08/04/2012, 06:00 PM
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 (c) 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.035400 3906,-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
}

[HHT]DRON
09/04/2012, 09:47 AM
help please to correct errors

Shabi RoxX
09/04/2012, 09:50 AM
Here you go :


forward AGCheck(playerid);
public AGCheck(playerid )// no use of ; here
{
if(Player[playerid][pVip] < 1)//error
{
if(IsPlayerInRangeOfPoint(playerid,7.0,2185.035400 3906,-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;
}

BMUK
09/04/2012, 09:51 AM
public AGCheck(playerid ) ;

remove that semi colon at the end

[HHT]DRON
09/04/2012, 09:54 AM
thanks all =)

[HHT]DRON
09/04/2012, 10:07 AM
gate don't move