01.03.2009, 18:03
Thanks for your reply [K4L]Leopard, but i'm gonna stick with Dini rather than using fread.
I'll explain the use for what i need. Basically it's a gamemode with rounds. So i can load up a round by using say /loadround [roundid]
Then the 'roundid' file will load from my scriptfiles/roundfiles folder. Each File is basicallly a differnet map/area. Roundid 1 may have coordinates in and around Grove St whilst Roundid 2 file has coordinates in and around Central Las Venturas - you get the picture.
Aim of the gamemode is for your team to get as many kills within the time. Team with highest kill wins. So every time a player dies and respawns it will set their position to a random place according to the roundid being played at the time rather than one set position - otherwise people can just stand around the spawn area and keep killing them each time someone spawns.
Each round has it's own map/area.
I've got all the code done, now all i need is to store the coordinates from the 'Roundid' file in an array for the player to spawn which is what i am requesting, not for all the above to be done. Then when another round starts it replaces the coordinates in that array with the coordinates of the new roundid being played.
I hope i made things simpler, and hope i've not confused things further.
I'll explain the use for what i need. Basically it's a gamemode with rounds. So i can load up a round by using say /loadround [roundid]
Then the 'roundid' file will load from my scriptfiles/roundfiles folder. Each File is basicallly a differnet map/area. Roundid 1 may have coordinates in and around Grove St whilst Roundid 2 file has coordinates in and around Central Las Venturas - you get the picture.
Aim of the gamemode is for your team to get as many kills within the time. Team with highest kill wins. So every time a player dies and respawns it will set their position to a random place according to the roundid being played at the time rather than one set position - otherwise people can just stand around the spawn area and keep killing them each time someone spawns.
Each round has it's own map/area.
I've got all the code done, now all i need is to store the coordinates from the 'Roundid' file in an array for the player to spawn which is what i am requesting, not for all the above to be done. Then when another round starts it replaces the coordinates in that array with the coordinates of the new roundid being played.
I hope i made things simpler, and hope i've not confused things further.