1 Error + 1 warning beim tor erstellen
D:\GTA\GTA San Andreas\gamemodes\GGR.pwn(22667) : error 029: invalid expression, assumed zero
D:\GTA\GTA San Andreas\gamemodes\GGR.pwn(22667) : warning 215: expression has no effect
if(strcmp(cmd, "/rftor",true) == 0)
{
if(PlayerInfo[playerid][pMember] == 18 || PlayerInfo[playerid][pLeader] == 18)
{
MoveObject(rifastor,2234.3999023438, -2215.6000976563, 9.1000003814697,3.0);
PlaySoundForPlayer(playerid, 1035);
SetTimer("CloseRifasTor", 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 Mitglied der L.S Rifas");
} //hier is der fehler
if(strcmp(cmd,"/army1",true) == 0)
{
if(PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3 || PlayerInfo[playerid][pMember] == 22 || PlayerInfo[playerid][pLeader] == 22)
{
MoveObject(armytor1,2473.3999023438, -2270.3999023438, 21,3.0);//tor unten
PlaySoundForPlayer(playerid,1035);
SetTimer("CloseArmy1", 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 nicht in der Army");
return 1;
}
das tor wolte ich erstellen
if(strcmp(cmd,"/test",true) == 0)
{
if(PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
{
MoveObject(testtor,135.19, 1941.34, 15.46, 0.00, 0.00, 0.00););//tor unten
PlaySoundForPlayer(playerid,1035);
SetTimer("Closetest", 5000, 0);
SetTimerEx("PlaySoundForPlayer",2000,0,"id",playerid,1036);
SendClientMessage(playerid, COLOR_RED, "Beeil dich das Tor schließt in 10sek!");
}
else SendClientMessage(playerid,COLOR_RED," Du bist nicht in der Army");
return 1;
}
new testtor;
tor oben
testtor = CreateObject(980, 135.19, 1941.34, 20.63, 0.00, 0.00, 0.00);
Mfg