Getting Info from .CFG file
#1

Deleted.
Reply
#2

just

pawn Код:
new File: gFile = fopen("filename.cfg", io_read);
if(gFile) {
    new line = 1, tmp[128];
    while(fread(gFile, tmp)) ++line;
    fclose(gFile);
}
line would contain your wanted number
Reply
#3

Thanks.

How about saving a new line? How would I get the next house ID to be used in the CFG file?

For example, when a player types "/buyhouse" the house ID will be automatically be 3, with regards to the example I posted.
Reply
#4

bump bump*
Reply
#5

Just use ini files....
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)