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

vehicles dont get destroyed on disconnect

$
0
0
hello.
i have this in my OnPlayerDisconnect, but the vehicles still don't go away.
Someone know why?


PHP Code:

for(new i=0i<sizeof(cInfo); i++)
    {
    if(
cInfo[i][id_x]==0)continue;
   if(!
strcmp(Vehicles[i][carowner], PlayerName(playerid), false))continue;
   
DestroyVehicle(cInfo[i][id_x]);
   
cInfo[i][id_x]=0;
    } 


Viewing all articles
Browse latest Browse all 18226

Trending Articles



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