enter checkpoint
#1

so i got this
PHP код:
    if(PTruckerCP[playerid] >= && PTruckerCP[playerid] <= 77)
    {
            if(
IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid)))
            {
                if(
PTruckerCP[playerid] <26PTruckerCP[playerid] += 100;
                if(
PTruckerCP[playerid] >=26 && PTruckerCP[playerid] <52PTruckerCP[playerid] += 200;
                if(
PTruckerCP[playerid] >=52PTruckerCP[playerid] += 300;
                
UnloadTimer[playerid] = SetTimerEx("UnloadTruck"50000"i"playerid);
                
            }
            return 
1;
    } 
the problem is,no matter what you chose (truck job),it`ll always set a players PTruckerCP += 400.why?

i got different checks and sets for 100,200 and 300.
Reply
#2

because when you're increasing this, it's automatically more than 52 so it adds another 300.
Reply
#3

solved it with

PHP код:
if(PTruckerCP[playerid] >=52 && PTruckerCP[playerid] <=77
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)