18.06.2014, 16:50
So i created address system so every house has its own address.
It generates the address when the house is created by looking at SAZones and it puts the smallest number that isn't loaded. My problem is that when a house is created and the server is restarted i don't know how to split the address in two pieces ( SAZone and address number ). I tried with strval and strtok but i can't figure it out. Help please
It generates the address when the house is created by looking at SAZones and it puts the smallest number that isn't loaded. My problem is that when a house is created and the server is restarted i don't know how to split the address in two pieces ( SAZone and address number ). I tried with strval and strtok but i can't figure it out. Help please