Restricting Audio Stream
#1

Right now I am proberly overlooking something right infront of me, but the audio stream still plays inside of these vehicles and it shouldn't.

Any ideas on what's causing the problem?

pawn Код:
if(newstate == PLAYER_STATE_DRIVER || newstate == PLAYER_STATE_PASSENGER)
{
    if(GetVehicleModel(GetPlayerVehicleID(playerid)) != 598 || GetVehicleModel(GetPlayerVehicleID(playerid)) != 497)
    {
        PlayAudioStreamForPlayer(playerid, "-snip-");
    }
}
Reply
#2

use
pawn Код:
if(GetVehicleModel(GetPlayerVehicleID(playerid)) != 598 && GetVehicleModel(GetPlayerVehicleID(playerid)) != 497)
Reply
#3

How stupid of me, thankyou for pointing out I used 'or' instead of 'and', I have just been staring at the code for 30 mins lol. <3
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)