30.05.2016, 08:58
hello.
i have this in my OnPlayerDisconnect, but the vehicles still don't go away.
Someone know why?
i have this in my OnPlayerDisconnect, but the vehicles still don't go away.
Someone know why?
PHP код:
for(new i=0; i<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;
}