OK,WHAT'S the problem now?
#1

Ok I made the system engine like this,and I have defined PRESSED and RELEASE but when I relase the key nothig happens:

pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
       new vehicleid=GetPlayerVehicleID(playerid);
       SetVehicleParamsEx(vehicleid,0,0,0,0,0,0,0);
       GameTextForPlayer(playerid,"Press 2 to turn engine on",1000,4);
       if(PRESSED(KEY_SUBMISSION))
       {
          SendClientMessage(playerid,BLUE,"The engine is turned on.");
          if(RELEASED(KEY_SUBMISSION))
          {
             SetVehicleParamsEx(vehicleid,1,0,0,0,0,0,0);
          }
       }
     }
       
    return 1;
}
What's the problem?
Reply


Messages In This Thread
OK,WHAT'S the problem now? - by Cjgogo - 24.04.2011, 14:27
Re: OK,WHAT'S the problem now? - by Anteino - 24.04.2011, 14:35
Re: OK,WHAT'S the problem now? - by Joshua_Einstein - 24.04.2011, 14:40

Forum Jump:


Users browsing this thread: 1 Guest(s)