[Unsolved] Get Random Coordinates from File
#3

You could make a file in scriptfiles, let's say coordinates.txt. Then get the number of lines in the file (search), then randomize it. Then fread(line) and extract it. Then convert it to float (strfloat... i think?) and at last SetPlayerPos.

Leopard
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)