Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

Ïðîáëåìà ñ ñèòñåìîé òðàíñïîðòà.

$
0
0
Ïðè áîëüøîì îíëàéíå , êîãäà èãðîêè âûõîäÿò óäàëÿþòüñÿ è èõ ìàøèíû è äðóãèå ÷óæèå , íî ïî÷åìó ÿ òàê è íå ïîéìó.

Âîò êîä êîòîðûé ÿ ñäåëàë , íî ïî÷åìó òî èä òà÷åê ñáèâàþòñÿ , ïðîñüáà ïîìî÷ü , è äàæå áûâàåò óäàëÿþòüñÿ ïðè âûõîäå ñîçäàíûå ò.ñ.

PHP Code:

    foreach(new iPlayer)
    {
        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]);
            
        }
    } 

Ïîìîãèòå ïîæàëóéñòà

Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>