28.02.2009, 18:30
Hi,
I need to know how I would get a list of coordinates from a file, and then when a player dies and respawns, it spawns them in one of those coordinates from that file.
I think the best way to do this would be to get the coordinates from the file when the file is loaded and store it in an array/variable so it loads up quickly when a player dies and would respawn from a random coordinate from that array. (Please ignore me if i am using incorrect terminology i.e. array/variable). I am using Dracoblue's Dini btw.
This is what I mean in it's most simplest form:
-I type /loadfile (filenumber)
- In that file i have a list of coordinates
-Now when the player dies, he respawns in a location specifieid from the file.
I am guessing I have to use dini_Float(filename[], key[]), but then how would i store it?
I hope you get what I mean, if not, I'll re-explain.
Thank You , ur help is much appreciated!
I need to know how I would get a list of coordinates from a file, and then when a player dies and respawns, it spawns them in one of those coordinates from that file.
I think the best way to do this would be to get the coordinates from the file when the file is loaded and store it in an array/variable so it loads up quickly when a player dies and would respawn from a random coordinate from that array. (Please ignore me if i am using incorrect terminology i.e. array/variable). I am using Dracoblue's Dini btw.
This is what I mean in it's most simplest form:
-I type /loadfile (filenumber)
- In that file i have a list of coordinates
-Now when the player dies, he respawns in a location specifieid from the file.
I am guessing I have to use dini_Float(filename[], key[]), but then how would i store it?
I hope you get what I mean, if not, I'll re-explain.
Thank You , ur help is much appreciated!