Hallo ich bins mal wieder
BIn momentan an einem gate dran daswenn mann davor steht als Admin Das es von alleine aufgeht das problem es PAWNO spuckt immer errors aus
Errors :
C:\DOKUME~1\ADMINI~1\Desktop\GTASAN~1\FILTER~1\Gatet.pwn(33) : error 017: undefined symbol "Player"
C:\DOKUME~1\ADMINI~1\Desktop\GTASAN~1\FILTER~1\Gatet.pwn(33) : error 017: undefined symbol "playerid"
C:\DOKUME~1\ADMINI~1\Desktop\GTASAN~1\FILTER~1\Gatet.pwn(33) : error 029: invalid expression, assumed zero
C:\DOKUME~1\ADMINI~1\Desktop\GTASAN~1\FILTER~1\Gatet.pwn(33) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
#include <a_samp>
new Gate;
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" TestGate");
print("--------------------------------------\n");
return 1;
}
#else
#endif
public OnGameModeInit()
{
Gate = CreateObject(980, 282.01324462891, -1319.3135986328, 55.627269744873, 0, 359, 35);
SetTimer("GateCheck", 1000, true);
return 1;
}
forward GateCheck();
public GateCheck()
{
if (Player[playerid][pAdmin] >= 1 )//Adminlevel einstellen, derzeit Größer oder Gleich 1
for(new playerid = 0; playerid < MAX_PLAYERS; playerid ++)
{
if(!IsPlayerConnected(playerid))continue;
if(IsPlayerInRangeOfPoint(playerid, 10,282.01324462891, -1319.3135986328, 55.627269744873))
MoveObject(Gate,295.24780273438, -1311.1627197266, 55.888900756836, 4);//(Geöffnet)
else
MoveObject(Gate,282.01324462891, -1319.3135986328, 55.627269744873, 4);//Geschlossen
}
}
Hoffe man kann mir helfen
mfg