[Unsolved] Get Random Coordinates from File
#1

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!

Reply


Messages In This Thread
[Unsolved] Get Random Coordinates from File - by member - 28.02.2009, 18:30
Re: Get Random Coordinates from File - by member - 01.03.2009, 17:42
Re: Get Random Coordinates from File - by pspleo - 01.03.2009, 17:51
Re: Get Random Coordinates from File - by member - 01.03.2009, 18:03
Re: Get Random Coordinates from File - by GunnerZ - 01.03.2009, 18:40
Re: Get Random Coordinates from File - by member - 01.03.2009, 18:59
Re: Get Random Coordinates from File - by GunnerZ - 01.03.2009, 19:07
Re: Get Random Coordinates from File - by member - 01.03.2009, 19:18

Forum Jump:


Users browsing this thread: 1 Guest(s)