27.06.2014, 14:49
Hey everyone! I have a problem. When a player buy a vehicle, everything works fine, but unce he leave the server, his cars got automatically deleted by the script. Then he needs to buy them again on login. Here is what I seen in the script about that.
"Deleting Vehicles for ID " is exact what is writing at the panel. Please if anyone know what is going on, help me!
Код:
} 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; }