Hi,
Habe ein Problem mit den Keys unter OnPlayerKeyStateChange.
Wenn ich Ingame STRG+Pfeiltatse nach oben oder nach unten klicke pasiert nichts:
if ((newkeys & KEY_ACTION) && (newkeys & KEY_UP))
{
new vid = GetPlayerVehicleID(playerid);
new engine,lights,alarm,doors,bonnet,boot,objective;
GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
if(mhaube[vid]==0) {
SetVehicleParamsEx(vid,engine,lights,alarm,doors,1,boot,objective);
mhaube[vid]=1;
}
else if(mhaube[vid]==1) {
SetVehicleParamsEx(vid,engine,lights,alarm,doors,0,boot,objective);
mhaube[vid]=0;
}
return 1;
}
else if ((newkeys & KEY_ACTION) && (newkeys & KEY_DOWN))
{
new vid = GetPlayerVehicleID(playerid);
new engine,lights,alarm,doors,bonnet,boot,objective;
GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
if(kraum[vid]==0) {
SetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,1,objective);
kraum[vid]=1;
}
else if(mhaube[vid]==1) {
SetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,0,objective);
kraum[vid]=0;
}
return 1;
}
Brauche eure Hilfe,
lg