15.02.2018, 12:58
so i got this
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.
PHP код:
if(PTruckerCP[playerid] >= 0 && PTruckerCP[playerid] <= 77)
{
if(IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid)))
{
if(PTruckerCP[playerid] <26) PTruckerCP[playerid] += 100;
if(PTruckerCP[playerid] >=26 && PTruckerCP[playerid] <52) PTruckerCP[playerid] += 200;
if(PTruckerCP[playerid] >=52) PTruckerCP[playerid] += 300;
UnloadTimer[playerid] = SetTimerEx("UnloadTruck", 5000, 0, "i", playerid);
}
return 1;
}
i got different checks and sets for 100,200 and 300.