Save and load GangZones
#9

You just need to save zone owner ID, and load when the gangzones are made.

Here is an example how you save, just do similar for loading (instead of Set, use Get).
PHP код:
public OnFilterScriptExit() {
    
// save owner
    // example with dini2
    
    
new name[35 3]; // 35 for name and 3 for id 
    
for (new isizeof(g_Turf); ji++) {
        
format(namesizeof(name), "%s%i"g_Turf[i][turfName], i);
        
dini_SetInt("filename"nameg_Turf[i][turfOwner]);
    }

Reply


Messages In This Thread
Save and load GangZones - by KamilPolska - 07.02.2018, 23:46
Re: Save and load GangZones - by Weponz - 08.02.2018, 02:09
Re: Save and load GangZones - by Mugala - 08.02.2018, 10:58
Re: Save and load GangZones - by PepsiCola23 - 08.02.2018, 11:15
Re: Save and load GangZones - by KamilPolska - 08.02.2018, 14:59
Re: Save and load GangZones - by Mugala - 08.02.2018, 15:11
Re: Save and load GangZones - by KamilPolska - 08.02.2018, 15:48
Re: Save and load GangZones - by KamilPolska - 08.02.2018, 21:04
Re: Save and load GangZones - by Gammix - 08.02.2018, 21:23
Re: Save and load GangZones - by KamilPolska - 09.02.2018, 13:22

Forum Jump:


Users browsing this thread: 1 Guest(s)