How to make it VIP only with PlayerInfo
#1

pawn Код:
stock IsVIPVehicle(vehicleid)
{
    for(new i=0; i<25; i++)
    {
        if(vehicleid == PlayerInfo[i][pVIP] >= 1 && vCar[i]) return 1; // LINE 48362
    }
    return 0;
}
ERRORS:

Код:
C:\Users\Debbie\Documents\Luxury Life RP\gamemodes\modernliferp.pwn(48362) : warning 213: tag mismatch
Reply
#2

show me your enum PlayerInfo
Reply
#3

Comparing vehicle ids and check if he's vip. I assume vCar stores the vehicleid. So, it'd be:

pawn Код:
if(vehicleid == vCar[i] && PlayerInfo[i][pVIP] >= 1) return 1;
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)