Reading objects, pickups and spawns from a .txt file?
#1

Okay, So what I wanna do is:

I wanna read object lines, Pickup lines and spawn lines from .txt files.
These objects and pickups and spawns change on every map.

I know HOW to read stuff from a file in small quantities and apply it but not when there are upto 200 objects.
Reply
#2

Код:
//Open File
for(new i = 0;i<200;++i)
{
    new obid;
    //Read line
    obid = ;//get Object id by reading line
}
//Close file
Also, you can make infinite loop.
Break loop when obid is either NULL or INVALID.
Reply
#3

im using SII,+ I didnt understand what you said ...
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)