ocmd:open(playerid)
{
if(IsPlayerConnected(playerid))
{
for(new i = 0; i < sizeof(HouseInfo); i++)
{
if(IsPlayerInRangeOfPoint(playerid,3.0,HouseInfo[i][hEntrancex], HouseInfo[i][hEntrancey], HouseInfo[i][hEntrancez]) || IsPlayerInRangeOfPoint(playerid,3.0,HouseInfo[i][hExitx], HouseInfo[i][hExity], HouseInfo[i][hExitz]))
{
if(PlayerInfo[playerid][pPhousekey] == i)
{
if(HouseInfo[i][hLock] == 1)
{
HouseInfo[i][hLock] = 0;
GameTextForPlayer(playerid, "~w~Tuer ~g~Auf", 5000, 6);
PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
return 1;
}
if(HouseInfo[i][hLock] == 0)
{
HouseInfo[i][hLock] = 1;
GameTextForPlayer(playerid, "~w~Tuer ~g~Zu", 5000, 6);
PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
return 1;
}
}
else
{
GameTextForPlayer(playerid, "~r~Du besitzt keinen Schluessel", 5000, 6);
return 1;
}
}
}
for(new i = 0; i < sizeof(BizzInfo); i++)
{
if(IsPlayerInRangeOfPoint(playerid,3.0,BizzInfo[i][bEntranceX], BizzInfo[i][bEntranceY], BizzInfo[i][bEntranceZ]) || IsPlayerInRangeOfPoint(playerid,3.0,BizzInfo[i][bExitX], BizzInfo[i][bExitY], BizzInfo[i][bExitZ]))
{
if(PlayerInfo[playerid][pPbiskey] == i)
{
if(BizzInfo[i][bLocked] == 1)
{
BizzInfo[i][bLocked] = 0;
GameTextForPlayer(playerid, "~w~Bussiness ~g~geoeffnet", 5000, 6);
PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
return 1;
}
if(BizzInfo[i][bLocked] == 0)
{
BizzInfo[i][bLocked] = 1;
GameTextForPlayer(playerid, "~w~Bussiness ~r~geschlossen", 5000, 6);
PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
return 1;
}
}
else
{
GameTextForPlayer(playerid, "~r~Du besitzt keinen Schluessel", 5000, 6);
return 1;
}
}
}
for(new i = 0; i < sizeof(SBizzInfo); i++)
{
if(IsPlayerInRangeOfPoint(playerid,3.0,SBizzInfo[i][sbEntranceX], SBizzInfo[i][sbEntranceY], SBizzInfo[i][sbEntranceZ]))
{
if(PlayerInfo[playerid][pPbiskey] == i+100)
{
if(SBizzInfo[i][sbLocked] == 1)
{
SBizzInfo[i][sbLocked] = 0;
GameTextForPlayer(playerid, "~w~Bussiness ~g~geoeffnet", 5000, 6);
PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
return 1;
}
if(SBizzInfo[i][sbLocked] == 0)
{
SBizzInfo[i][sbLocked] = 1;
GameTextForPlayer(playerid, "~w~Bussiness ~r~geschlossen", 5000, 6);
PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
return 1;
}
}
else
{
GameTextForPlayer(playerid, "~r~Du besitzt keinen Schluessel", 5000, 6);
return 1;
}
}
}
for(new i = 0; i < sizeof(TankeInfo); i++)
{
if(IsPlayerInRangeOfPoint(playerid,3.0,TankeInfo[i][tEntranceX], TankeInfo[i][tEntranceY], TankeInfo[i][tEntranceZ]))
{
if(PlayerInfo[playerid][pPtankekey] == i+100)
{
if(TankeInfo[i][tLocked] == 1)
{
TankeInfo[i][tLocked] = 0;
GameTextForPlayer(playerid, "~w~Tankstelle ~g~Offen", 5000, 6);
PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
return 1;
}
if(TankeInfo[i][tLocked] == 0)
{
TankeInfo[i][tLocked] = 1;
GameTextForPlayer(playerid, "~w~Tankstelle ~r~Geschlossen", 5000, 6);
PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
return 1;
}
}
else
{
GameTextForPlayer(playerid, "~r~Du besitzt keinen Schluessel", 5000, 6);
return 1;
}
}
if(IsPlayerInRangeOfPoint(playerid,4.0,1999.9619,-1114.4924,27.1250) && GetPlayerVirtualWorld(playerid) == 0) // Ballas Eingang
{
if(!(IsPlayerInFrac(playerid,14))return SendClientMessage(playerid, COLOR_RED,"Du hast nicht die benötigte Berechtigung für diesen Befehl"); //52094
if(gBallasDoor == 0)
{
gBallasDoor = 1;
GameTextForPlayer(playerid, "~r~Abgeschlossen!", 3000, 6);
}
else if(gBallasDoor == 1)
{
gBallasDoor = 0;
GameTextForPlayer(playerid, "~r~Abgeschlossen!", 3000, 6);
}
}
else if(IsPlayerInRangeOfPoint(playerid,4.0,2496.0225,-1692.6548,1014.7422) && GetPlayerVirtualWorld(playerid) == 1) // Ballas Ausgang
{
if(!(IsPlayerInFrac(playerid,14))return SendClientMessage(playerid, COLOR_RED,"Du hast nicht die benötigte Berechtigung für diesen Befehl"); //52108
if(gBallasDoor == 0)
{
gBallasDoor = 1;
GameTextForPlayer(playerid, "~r~Abgeschlossen!", 3000, 6);
}
else if(gBallasDoor == 1)
{
gBallasDoor = 0;
GameTextForPlayer(playerid, "~r~Abgeschlossen!", 3000, 6);
}
}
}
}
return 1;
}
Alles anzeigen
C:\Users\Medion\Desktop\Daten Medion\GTA SA Datein\GTA Scripts\German-Next-Era-Life---v2.5\German-Next-Era-Life---v2.5\German Next Era Life - v2.5\gamemodes\GNE.pwn(52094) : error 001: expected token: ")", but found "return"C:\Users\Medion\Desktop\Daten Medion\GTA SA Datein\GTA Scripts\German-Next-Era-Life---v2.5\German-Next-Era-Life---v2.5\German Next Era Life - v2.5\gamemodes\GNE.pwn(52108) : error 001: expected token: ")", but found "return"