Help [Script deleting cars owned cars]
#1

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.

Код:
	}
	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;
}
"Deleting Vehicles for ID " is exact what is writing at the panel. Please if anyone know what is going on, help me!
Reply


Messages In This Thread
Help [Script deleting cars owned cars] - by TheBlaze243 - 27.06.2014, 14:49
Re: Help [Script deleting cars owned cars] - by TheBlaze243 - 27.06.2014, 15:53
Re: Help [Script deleting cars owned cars] - by TheBlaze243 - 27.06.2014, 17:57
Respuesta: Help [Script deleting cars owned cars] - by SickAttack - 27.06.2014, 18:03
Re: Help [Script deleting cars owned cars] - by TheBlaze243 - 27.06.2014, 18:13

Forum Jump:


Users browsing this thread: 2 Guest(s)