Ich habe ein Problem und zwar will ich ein Tor öffen ich habe das bis jetzt so gemacht:
forward ator1();
new ator1;
294 ator1 = CreateObject(980, 661.40002441406, -1228.0999755859, 17.5, 0, 0, 63);
2039 if(strcmp(cmdtext, "/ator1", true 10) ==0)
{
if(!isPlayerAnAdmin(playerid))
{
SendClientMessage(playerid,BLAU,"Das Tor ist für 10 Sekunden offen.");
MoveObject(ator1,661.40002441406, -1228.0999755859, 27.5,2.0);
SetTimer("Tor",10000,false);
return 1;
}
else
{
SendClientMessage(playerid,BLAU,"Du bist kein Admin!.");
return 1;
}
}
public ator1()
{
MoveObject(ator1,661.40002441406, -1228.0999755859, 17.5,2.0);
}
Und wenn ich es Compile kommen diese errors:
C:\Users\Kai1\Documents\script testing\gamemodes\hi.pwn(294) : error 076: syntax error in the expression, or invalid function call
C:\Users\Kai1\Documents\script testing\gamemodes\hi.pwn(2039) : error 001: expected token: ",", but found "-integer value-"
C:\Users\Kai1\Documents\script testing\gamemodes\hi.pwn(2039) : warning 215: expression has no effect
C:\Users\Kai1\Documents\script testing\gamemodes\hi.pwn(2039) : error 001: expected token: ";", but found ")"
C:\Users\Kai1\Documents\script testing\gamemodes\hi.pwn(2039) : error 029: invalid expression, assumed zero
C:\Users\Kai1\Documents\script testing\gamemodes\hi.pwn(2039) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
5 Errors.