Hey ich habe versucht 2 tore zu machen für die Army aber Funktioniert nicht Bekomme Error's ?
// Armytor
new armytor1;
new armytor1var1;
new armytor2;
new armytor2var;
armytor1 = CreateObject(19313,285.91,1819.96,19.45, 0.00,0.00,90.00); // Armytor1
armytor2 = CreateObject(19313,134.85,1941.66,21.19, 0.00,0.00,0.00); // Armytor 2
//ARMY Tor
if(strcmp(cmd,"/armytor1",true) == 0)
{
if(PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
{
if(armytor1var == 0)
{
MoveObject(armytor1, 19313, 285.84, 1834.40,5.0);
SendClientMessage(playerid, COLOR_GREEN, "Tor geöffnet");
PlaySoundForPlayer(playerid,1035);
SetTimerEx("PlaySoundForPlayer",2000,0,"id",playerid,1036);
armytor1var = 1;
}
else
{
MoveObject(armytor1, 285.91,1819.96,19.45,5.0);
SendClientMessage(playerid, COLOR_RED, "Tor geschlossen");
PlaySoundForPlayer(playerid,1035);
SetTimerEx("PlaySoundForPlayer",2000,0,"id",playerid,1036);
armytor1var = 0;
}
}
else SendClientMessage(playerid,COLOR_RED," Du bist kein Mitglied der Army");
return 1;
}
//ARMY Tor2
if(strcmp(cmd,"/armytor2",true) == 0)
{
if(PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
{
if(armytor2var == 0)
{
MoveObject(armytor2, 121.37, 1941.64, 21.19,,5.0);
SendClientMessage(playerid, COLOR_GREEN, "Tor geöffnet");
PlaySoundForPlayer(playerid,1035);
SetTimerEx("PlaySoundForPlayer",2000,0,"id",playerid,1036);
armytor2var = 1;
}
else
{
MoveObject(armytor2, 134.85,1941.66,21.19,5.0);
SendClientMessage(playerid, COLOR_RED, "Tor geschlossen");
PlaySoundForPlayer(playerid,1035);
SetTimerEx("PlaySoundForPlayer",2000,0,"id",playerid,1036);
armytor2var = 0;
}
}
else SendClientMessage(playerid,COLOR_RED," Du bist kein Mitglied der Army");
return 1;
}
(22403) : error 017: undefined symbol "armytor1var"
(22409) : error 017: undefined symbol "armytor1var"
(22409) : warning 215: expression has no effect
(22417) : error 017: undefined symbol "armytor1var"
(22417) : warning 215: expression has no effect
(22430) : error 029: invalid expression, assumed zero
(22430) : warning 215: expression has no effect
(22430) : error 001: expected token: ";", but found ")"
(22430) : error 029: invalid expression, assumed zero
(22430) : fatal error 107: too many error messages on one line