//Army
if(strcmp(cmdtext,"/army1",true)==0)
{
if(IsPlayerInRangeOfPoint(playerid,283.4176,1821.6686,17.6406,274.2540,30.0))
{
if(armytor == 0)
{
armytor = 1;
MoveObject(armytor[0],289.60000610352, 1821.0999755859, 10, 2.00);// army Rein OPEN
MoveObject(armytor1[1],284.89999389648, 1819.8000488281, 10, 2.00);// Army1 Rein OPEN
}
else
{
armytor = 0;
MoveObject(armytor[0],289.60000610352, 1821.0999755859, 10-10, 2.00);// Army raus CLOSE
MoveObject(armytor1[1],284.89999389648, 1819.8000488281, 10-10, 2.00);//army1 raus CLOSE
}
}
}
if(strcmp(cmd,"/army2",true) == 0)
{
if(IsACop(playerid))
{
if(armytor2 == 0)
{
MoveObject(armytor2, 96.599998474121, 1921.4000244141, 17.10000038147,5.0);
SendClientMessage(playerid, COLOR_GREEN, "Tor geöffnet");
PlaySoundForPlayer(playerid,1035);
SetTimerEx("PlaySoundForPlayer",2000,0,"id",playerid,1036);
armytor2 = 1;
}
else
{
MoveObject(armytor2, 96.599998474121, 1921.4000244141, 17.10000038147,5.0);
SendClientMessage(playerid, COLOR_RED, "Tor geschlossen");
PlaySoundForPlayer(playerid,1035);
SetTimerEx("PlaySoundForPlayer",2000,0,"id",playerid,1036);
armytor2 = 0;
}
}
else SendClientMessage(playerid,COLOR_RED," Du bist kein Beamter");
return 1;
}
if(strcmp(cmdtext,"/army3",true)==0)
{
if(IsPlayerInRangeOfPoint(playerid,134.7282,1938.2645,19.2865,358.2121,30.0))
{
if(armytor == 0)
{
armytor3 = 1;
MoveObject(armytor3[0],134.39999389648, 1942.5, 10, 2.00);// army3 Rein OPEN
MoveObject(armytor4[1],284.89999389648, 1819.8000488281, 10, 2.00);// Army4 Rein OPEN
}
else
{
armytor3 = 0;
MoveObject(armytor3[0],289.60000610352, 1821.0999755859, 10-10, 2.00);// Army3 raus CLOSE
MoveObject(armytor4[1],134.19999694824, 1937.9000244141, 10-10, 2.00);//army4 raus CLOSE
}
}
}
Hier die Zeile und die Errors:
C:\Users\Dennis\Desktop\Reallife\gamemodes\WoSV.1.0....pwn(19833) : error 028: invalid subscript (not an array or too many subscripts): "armytor"
C:\Users\Dennis\Desktop\Reallife\gamemodes\WoSV.1.0....pwn(19833) : warning 215: expression has no effect
C:\Users\Dennis\Desktop\Reallife\gamemodes\WoSV.1.0....pwn(19833) : error 001: expected token: ";", but found "]"
C:\Users\Dennis\Desktop\Reallife\gamemodes\WoSV.1.0....pwn(19833) : error 029: invalid expression, assumed zero
C:\Users\Dennis\Desktop\Reallife\gamemodes\WoSV.1.0....pwn(19833) : fatal error 107: too many error messages on one line
MoveObject(armytor[0],289.60000610352, 1821.0999755859, 10, 2.00);// army Rein OPEN
Das ist mein Army Tor System
Kann mir einer Helfen?
Nach einem Error kommt der Nächste -.-
Bitte guckt euch das System an...