Code:
error 029: invalid expression, assumed zero
PHP Code:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
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;
}