Hier einmal den warning
C:\Users\User\Desktop\samp\gamemodes\ggr.pwn(53019) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Warning.
Und hier die Zeile:
Function Closebrtor()
{
MoveObject(brtor, -2592.84, 1355.22, 8.35);//53019
return 1;
}
Und hier der Befehl dür das tor:
if(strcmp(cmd,"/brtor",true) == 0)
{
if(IsPlayerInRangeOfPoint(playerid,5, -2592.84, 1355.22, 8.35) || IsPlayerInRangeOfPoint(playerid,5, 1214.21, -1845.18, 15.16))
{
if(PlayerInfo[playerid][pMember] == 23 || PlayerInfo[playerid][pLeader] == 23)
{
MoveObject(brtor, -2592.84, 1355.22, 8.35-10,3.0);
PlaySoundForPlayer(playerid, 1035);
SetTimer("Closebrtor", 5000,0);
SetTimerEx("PlaySoundForPlayer",2000,0,"id",playerid,1036);
SendClientMessage(playerid,COLOR_RED,"Beeil dich das Tor schließt in 5sek!");
}
else
{
SendClientMessage(playerid, COLOR_RED," Du bist kein Angehöriger der Brigada");
}
}
else
{
SendClientMessage(playerid,COLOR_RED, "Du bist nicht in der nähe des Tores");
}
}
//Edit Ah hab den Fehler gefunden xD