Guten Tag,
alle Auto Befehle gehen nicht.. Hier ist einer davon:
CMD:carlock(playerid,params[])
{
if(PlayerInfo[playerid][pCarKey] == 1)
{
if(PlayerInfo[playerid][pKey] == 0) return Nachricht(playerid, cLIGHTRED,"Du besitzt kein Auto !");
new Float: X, Float: Y, Float: Z;
GetVehiclePos(PlayerInfo[playerid][pKey], X, Y, Z);
if(PlayerToPoint(10.0, playerid, X, Y, Z))
{
new zengine, zlights, zalarm, zdoors, zbonnet, zboot, zobjective;
GetVehicleParamsEx(PlayerInfo[playerid][pKey], zengine, zlights, zalarm, zdoors, zbonnet, zboot, zobjective);
if(doors == 0)
{
SetVehicleParamsEx(PlayerInfo[playerid][pKey], zengine, zlights, zalarm, 1, zbonnet, zboot, zobjective);
GameTextForPlayer(playerid, "~r~Abgeschlossen", 5000, 5);
}
else
{
SetVehicleParamsEx(PlayerInfo[playerid][pKey], zengine, zlights, zalarm, 0, zbonnet, zboot, zobjective);
GameTextForPlayer(playerid, "~g~Aufgeschlossen", 5000, 5);
}
}
else return Nachricht(playerid, cLIGHTRED,"Du befindest dich nicht in der Nähe von deinem Auto !");
}
else if(PlayerInfo[playerid][pCarKey] == 2)
{
if(PlayerInfo[playerid][pKey2] == 0) return Nachricht(playerid, cLIGHTRED,"Du besitzt kein Auto !");
new Float: X, Float: Y, Float: Z;
GetVehiclePos(PlayerInfo[playerid][pKey2], X, Y, Z);
if(PlayerToPoint(10.0, playerid, X, Y, Z))
{
new zengine, zlights, zalarm, zdoors, zbonnet, zboot, zobjective;
GetVehicleParamsEx(PlayerInfo[playerid][pKey2], zengine, zlights, zalarm, zdoors, zbonnet, zboot, zobjective);
if(doors == 0)
{
SetVehicleParamsEx(PlayerInfo[playerid][pKey2], zengine, zlights, zalarm, 1, zbonnet, zboot, zobjective);
GameTextForPlayer(playerid, "~r~Abgeschlossen", 5000, 5);
}
else
{
SetVehicleParamsEx(PlayerInfo[playerid][pKey2], zengine, zlights, zalarm, 0, zbonnet, zboot, zobjective);
GameTextForPlayer(playerid, "~g~Aufgeschlossen", 5000, 5);
}
}
else return Nachricht(playerid, cLIGHTRED,"Du befindest dich nicht in der Nähe von deinem Auto !");
}
else if(PlayerInfo[playerid][pCarKey] == 3)
{
if(PlayerInfo[playerid][pKey3] == 0) return Nachricht(playerid, cLIGHTRED,"Du besitzt kein Auto !");
new Float: X, Float: Y, Float: Z;
GetVehiclePos(PlayerInfo[playerid][pKey3], X, Y, Z);
if(PlayerToPoint(10.0, playerid, X, Y, Z))
{
new zengine, zlights, zalarm, zdoors, zbonnet, zboot, zobjective;
GetVehicleParamsEx(PlayerInfo[playerid][pKey3], zengine, zlights, zalarm, zdoors, zbonnet, zboot, zobjective);
if(doors == 0)
{
SetVehicleParamsEx(PlayerInfo[playerid][pKey3], zengine, zlights, zalarm, 1, zbonnet, zboot, zobjective);
GameTextForPlayer(playerid, "~r~Abgeschlossen", 5000, 5);
}
else
{
SetVehicleParamsEx(PlayerInfo[playerid][pKey3], zengine, zlights, zalarm, 0, zbonnet, zboot, zobjective);
GameTextForPlayer(playerid, "~g~Aufgeschlossen", 5000, 5);
}
}
else return Nachricht(playerid, cLIGHTRED,"Du befindest dich nicht in der Nähe von deinem Auto !");
}
return 1;
}
(Es kommen keine Warnings/Errors)