Hallo Community,
will gerne mehrere Gates rein machen aber es will irgendwie nicht funktionieren bekommen andauernd mehrer errors.
public checkparea(playerid)
{
if (PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
{
if(PlayerToPoint(10.0, playerid, 1643.497070, -1714.915894, 15.425395))
{
MoveObject(parkh1, 1643.497070, -1714.915894, 14.075416, 2.5);
SetTimer("closegate", 5000, 0);
}
return 1;
}
if (PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
{
if(PlayerToPoint(10.0, playerid, 1643.497070, -1714.915894, 15.425395))
{
MoveObject(parkh1, 1643.497070, -1714.915894, 14.075416, 2.5);
SetTimer("closegate", 5000, 0);
}
return 1;
}
public closegate()
{
MoveObject(parkh1,1643.497070, -1714.915894, 15.425395, 2.5);
return 1;
}
MoveObject(parkh1,1643.497070, -1714.915894, 15.425395, 2.5);
return 1;
}
Was mache ich falsch ?
Danke im Voraus ür die Hilfe