20.08.2012, 09:04
I have a big problem
when the car dies the server network data with the server is lost
This happens when a ownablecar is explode but when a not ownable car is explode all is ok
that's the script
when the car dies the server network data with the server is lost
This happens when a ownablecar is explode but when a not ownable car is explode all is ok
that's the script
Код:
public OnVehicleDeath(vehicleid,killerid)
{
for(new playerid = 0; playerid < MAX_PLAYERS; playerid++)
{
new idcar = GetPlayerVehicleID(playerid);
if(IsAnOwnableCar(vehicleid) && CarInfo[vehicleid][cOwned] == 1)
{
CarInfo[idcar][cTD]++;
OnPropUpdate(); SavePlayerData(playerid);
}
}
return 1;
}

