HELP - House Address Problem - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: HELP - House Address Problem (
/showthread.php?tid=520364)
HELP - House Address Problem -
Danijel. - 18.06.2014
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
Re: HELP - House Address Problem -
Jay_Dixon - 18.06.2014
Quote:
Originally Posted by Danijel.
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 
|
And we're supposed to guess your script?
Re: HELP - House Address Problem -
Danijel. - 18.06.2014
well it is a gamemode from scratch, and i thought you dont need it beacuse i just wanna know how to split string onto number and string
Re: HELP - House Address Problem -
Danijel. - 18.06.2014
Help!