Yo huhu,
ich wollte jez meinen Usern ermöglichen den Kofferraum und die Motorhaube zu öffnen.
Jez habe ich ein Problem:
if(strcmp(cmdtext, "/motorhaube", true) == 0)
{
if(IsPlayerInAnyVehicle(playerid))
{
new vid = GetPlayerVehicleID(playerid);
new engine,lights,alarm,doors,bonnet,boot,objective;
GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
if(bonnet == false)//Problemzeile
{
SetVehicleParamsEx(vid,engine,lights,alarm,doors,VEHICLE_PARAMS_ON,boot,objective);
SendClientMessage(playerid,0xFF0000,"Du hast die Motorhaube geöffnet!");
}
else
{
SetVehicleParamsEx(vid,engine,lights,alarm,doors,VEHICLE_PARAMS_OFF,boot,objective);
SendClientMessage(playerid,0xFF0000,"Du hast die Motorhaube geschlossen!");
}
}
return 1;
}
if(strcmp(cmdtext, "/kofferraum", true) == 0)
{
if(IsPlayerInAnyVehicle(playerid))
{
new vid = GetPlayerVehicleID(playerid);
new engine,lights,alarm,doors,bonnet,boot,objective;
GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
if(boot == false) //Problemzeile
{
SetVehicleParamsEx(vid,engine,lights,alarm,doors,VEHICLE_PARAMS_ON,boot,objective);
SendClientMessage(playerid,0xFF0000,"Du hast den Kofferraum geöffnet!");
}
else
{
SetVehicleParamsEx(vid,engine,lights,alarm,doors,VEHICLE_PARAMS_OFF,boot,objective);
SendClientMessage(playerid,0xFF0000,"Du hast den Kofferraum geschlossen!");
}
}
return 1;
}
[hide]C:\Users\Sven\Desktop\3c Client released\gamemodes\lyd.pwn(16478) : warning 213: tag mismatch
C:\Users\Sven\Desktop\3c Client released\gamemodes\lyd.pwn(16498) : warning 213: tag mismatch
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Warnings.
[/hide]
Hoffe mir kann jemand erklären was daran falsch ist.
mfg lolli