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
#2

Any one wants to help me ?..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)