Y_ini and loading coordinates. - 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: Y_ini and loading coordinates. (
/showthread.php?tid=471511)
Y_ini and loading coordinates. -
]Rafaellos[ - 23.10.2013
Hi everyone, I am currently working on the loading part of my Race System. I am trying to load data using Y_ini and everything load fine (debug) except the coordinates.
I am saving them like so: Checkpoint0 = 1000.0000,1111.0000,1222.0000
In what I am supposed to load them, String, Float or what?
Thank you!
Re: Y_ini and loading coordinates. - Patrick - 23.10.2013
When loading coordinates, you must use
Float
pawn Код:
INI_Float ( ... ) // examle, I don't really use Y_INI.
Re: Y_ini and loading coordinates. -
]Rafaellos[ - 23.10.2013
I tried, is not loading the script then for some reason.
pawn Код:
new Float:test;
INI_Float("Checkpoint0", test);
Re: Y_ini and loading coordinates. -
KingHual - 23.10.2013
To load it, do the opposite of what you did to save it.
Re: Y_ini and loading coordinates. -
]Rafaellos[ - 23.10.2013
The problem is I haven't create any saving system yet. I am planning to create an Ingame Race builder but first I want to create the loading system.
Re: Y_ini and loading coordinates. -
sKgaL - 23.10.2013
You could take it as a string , and just split it out.
https://sampwiki.blast.hk/wiki/Code_Snippets#Split
Re: Y_ini and loading coordinates. -
]Rafaellos[ - 23.10.2013
I just figure out that my code had the problem and it wasn't loading. Still thanks to everyone that tried
Re: Y_ini and loading coordinates. -
KingHual - 23.10.2013
Why would you create the load part before creating the save part?
Re: Y_ini and loading coordinates. -
]Rafaellos[ - 23.10.2013
Because the saving part will be the easiest one.