D:\Daten von Luca\Desktop\Luca\NeoN SkyLine RealLife\gamemodes\NSR.pwn(33817) : error 017: undefined symbol "engine"
D:\Daten von Luca\Desktop\Luca\NeoN SkyLine RealLife\gamemodes\NSR.pwn(33818) : error 017: undefined symbol "doors"
D:\Daten von Luca\Desktop\Luca\NeoN SkyLine RealLife\gamemodes\NSR.pwn(33820) : error 017: undefined symbol "engine"
D:\Daten von Luca\Desktop\Luca\NeoN SkyLine RealLife\gamemodes\NSR.pwn(33825) : error 017: undefined symbol "engine"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 4.Errors
Habe es probiert zu Definieren aber es geht dann gar nicht mehr...
new Roller[MAX_PLAYERS];
new startroller[MAX_PLAYERS];
if(strcmp(cmd, "/roller", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(Roller[playerid] == 1)return SendClientMessage(playerid, COLOR_GRAD2, "Du hast bereits ein Fahrrad.");
if(IsPlayerInRangeOfPoint(playerid, 2.0, 1104.7621,-1434.4674,15.7969))
{
if(GetPlayerMoney(playerid) < 300)return SendClientMessage(playerid, COLOR_GRAD2, "Du benötigst 300$ um ein Fahrrad mieten zu können.");
startroller[playerid] = CreateVehicle(481, 1103.9620,-1412.0159,13.2127,270.6089,1,1,-1);
PutPlayerInVehicle(playerid, startroller[playerid], 0);
Roller[playerid] = 1;
}
else
{
return 1;
}
}
return 1;
}
if(strcmp(cmd, "/rlock", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(Roller[playerid] == 1)
{
GetVehicleParamsEx(startroller[playerid], engine, light, alarm, doors, bonnet, boot, objective);
if(doors)
{
SetVehicleParamsEx(startroller[playerid], engine, light, alarm, 0, bonnet, boot, objective);
GameTextForPlayer(playerid, "~w~Fahrrad~n~~g~Aufgeschlossen", 3000, 6);
}
else
{
SetVehicleParamsEx(startroller[playerid], engine, light, alarm, 1, bonnet, boot, objective);
GameTextForPlayer(playerid, "~w~Fahrrad~n~~r~Abgeschlossen", 3000, 6);
}
}
else if(Roller[playerid] == 0)
{
return SendClientMessage(playerid, COLOR_WHITE, "Du besitzt kein Fahrrad.");
}
}
return 1;
}