Vehicle Save....+Rep
#1

Hello,i'm nearly opening a server using this gamemode : United Gamng RP
But I have a one problem that when a person buy a car,when he quit the game his owned vehicles get deleted,i need help if anyone would help me.

Codes of Deleting"if I removed them I get a lot of errors."
pawn Код:
else if(PlayerInfo[playerid][pJob] == 7)
    {
        if(JobDuty[playerid] == 1) { Mechanics -= 1; }
    }
    if(PlayerInfo[playerid][PlayerVehicleModel1] != 0)
    {
        ResetPlayerVehicle(playerid,1);
    }
    if(PlayerInfo[playerid][PlayerVehicleModel2] != 0)
    {
        ResetPlayerVehicle(playerid,2);
    }
    if(PlayerInfo[playerid][PlayerVehicleModel3] != 0)
    {
        ResetPlayerVehicle(playerid,3);
    }
    if(PlayerInfo[playerid][PlayerVehicleModel4] != 0)
    {
        ResetPlayerVehicle(playerid,4);
    }
    if(PlayerInfo[playerid][PlayerVehicleModel5] != 0)
    {
        ResetPlayerVehicle(playerid,5);
    }
    printf("//Deleting Vehicles For ID: %d", playerid);
    return 1;
}
__________________________________________________ ______

+REP If you helped me.
Reply


Messages In This Thread
Vehicle Save....+Rep - by Brys - 21.12.2014, 17:06
Re: Vehicle Save....+Rep - by Brys - 21.12.2014, 17:49

Forum Jump:


Users browsing this thread: 1 Guest(s)