OnPlayerKey
#4

Quote:
Originally Posted by Thanks
Посмотреть сообщение
Код:
error 029: invalid expression, assumed zero
PHP код:
public OnPlayerKeyStateChange(playeridnewkeysoldkeys)
{
    new 
playerState GetPlayerState(PLAYER_STATE_DRIVER); // Get the killer's state
    
if(PRESSED(KEY_LOOK_BEHIND)
    {
        if(
playerState == PLAYER_STATE_DRIVER)
        {
            
RepairVehicle(Infernus[0]);
        }
    }
    return 
1;

??
This part is wrong as well, it should be
PHP код:
GetPlayerState(playerid); 
Reply


Messages In This Thread
OnPlayerKey - by Thanks - 01.01.2018, 20:01
Re: OnPlayerKey - by FailerZ - 01.01.2018, 20:03
Re: OnPlayerKey - by Thanks - 01.01.2018, 20:04
Re: OnPlayerKey - by ThePhenix - 01.01.2018, 20:04
Re: OnPlayerKey - by Abagail - 01.01.2018, 20:16

Forum Jump:


Users browsing this thread: 1 Guest(s)