No errors, but won't work
#1

pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid)
{
    if(StarsCar[0] <= vehicleid <= StarsCar[1])
        if(team[playerid] != 6)
            ClearAnimations(playerid),SendClientMessage(playerid,GREEN,"You're not S.T.A.R.S.");
            else
            if(UCCars[0] <= vehicleid <= UCCars[1])
                 if(team[playerid] != 7)
                      ClearAnimations(playerid),SendClientMessage(playerid,GREEN,"You're not U.C.");
    return 1;
}

I doesn't give any errors, but it doesn't work in game =/
Reply
#2

How do I fix it ?
Reply
#3

anybody ?
Reply
#4

First of all, don't double post..

Second, what are you trying to achieve?

Like this?
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid)
{
    if(StarsCar[0] == vehicleid || StarsCar[1] == vehicleid)
        if(team[playerid] != 6)
            ClearAnimations(playerid),SendClientMessage(playerid,GREEN,"You're not S.T.A.R.S.");
            else
            if(UCCars[0] == vehicleid || UCCars[1] == vehicleid)
                 if(team[playerid] != 7)
                      ClearAnimations(playerid),SendClientMessage(playerid,GREEN,"You're not U.C.");
    return 1;
}
Reply
#5

is the private vehicle thing

this works :

pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid)
{
    if(StarsCar[0] == vehicleid || StarsCar[1] == vehicleid)
        if(team[playerid] != 6)
            ClearAnimations(playerid),SendClientMessage(playerid,GREEN,"You're not S.T.A.R.S.");
    return 1;
}
but I wanna make some other vehicles private for other team
get it ?
Reply
#6

pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid)
{
    if(StarsCar[0] <= vehicleid <= StarsCar[1])
        if(team[playerid] != 6)
            ClearAnimations(playerid),SendClientMessage(playerid,GREEN,"You're not S.T.A.R.S.");
    if(UCCars[0] <= vehicleid <= UCCars[1])
        if(team[playerid] != 7)
            ClearAnimations(playerid),SendClientMessage(playerid,GREEN,"You're not U.C.");
    return 1;
}
Why another topic..
Reply
#7

cause Is kinda different lol

thx btw
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)