Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Vérification du propriétaire
- new
- string[128],
- bool:delete_vehicle[MAX_VEHICLES_SERVER] = false,
- vCount = 0,
- Cache:result;
- foreach(new vehid : Vehicles)
- {
- if(Vehicle_infos[vehid][v_Clan] != 0)
- {
- mysql_format(mysql, string, sizeof(string),"SELECT `clan_lead` FROM `users` WHERE `id` = '%d' LIMIT 1", playerInfo[playerid][E_LeadClan]);
- result = mysql_query(mysql, string);
- if(!cache_num_rows()) {
- delete_vehicle[vehid] = true;
- vCount++;
- }
- cache_delete(result);
- }
- }
- Loop(vehid, MAX_VEHICLES_SERVER)
- {
- if(delete_vehicle[vehid])
- Vehicle_destroy(vehid);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement