Ïðè áîëüøîì îíëàéíå , êîãäà èãðîêè âûõîäÿò óäàëÿþòüñÿ è èõ ìàøèíû è äðóãèå ÷óæèå , íî ïî÷åìó ÿ òàê è íå ïîéìó.
Âîò êîä êîòîðûé ÿ ñäåëàë , íî ïî÷åìó òî èä òà÷åê ñáèâàþòñÿ , ïðîñüáà ïîìî÷ü , è äàæå áûâàåò óäàëÿþòüñÿ ïðè âûõîäå ñîçäàíûå ò.ñ.
Ïîìîãèòå ïîæàëóéñòà
Âîò êîä êîòîðûé ÿ ñäåëàë , íî ïî÷åìó òî èä òà÷åê ñáèâàþòñÿ , ïðîñüáà ïîìî÷ü , è äàæå áûâàåò óäàëÿþòüñÿ ïðè âûõîäå ñîçäàíûå ò.ñ.
PHP Code:
foreach(new i: Player)
{
if(PI[i][cCarId][0] == PI[playerid][cCarId][0] && PI[playerid][cCarId][0] != INVALID_VEHICLE_ID)
{
DestroyDynamic3DTextLabel(VehicleLabel[PI[playerid][cCarId][0]]);
DestroyVehicle(PI[playerid][cCarId][0]);
}
if(PI[i][cCarId][1] == PI[playerid][cCarId][1] && PI[playerid][cCarId][1] != INVALID_VEHICLE_ID)
{
DestroyDynamic3DTextLabel(VehicleLabel[PI[playerid][cCarId][1]]);
DestroyVehicle(PI[playerid][cCarId][1]);
PI[playerid][cCarId][1] = INVALID_VEHICLE_ID;
}
if(PI[i][cCarId][2] == PI[playerid][cCarId][2] && PI[playerid][cCarId][2] != INVALID_VEHICLE_ID)
{
DestroyDynamic3DTextLabel(VehicleLabel[PI[playerid][cCarId][2]]);
DestroyVehicle(PI[playerid][cCarId][2]);
}
}