Reading files
#1

Ok, I'm trying to learn how to use the sa-mp file functions. Ive gotten stuck on reading the file and assigning the correct ammount of score etc like any loading system would do.

I went on the wiki and came across this:
pawn Код:
GetVal(numb, str[]) {
    new tmp[256], idx;
    for(new i=0; i<numb; i++) {
        tmp=strtok(str, idx);
    }
    return strval(tmp);
}
I dont understand it and this is what they use to load the stats out of the file, could someone please explain it to me?
Reply


Messages In This Thread
Reading files - by thefatshizms - 22.11.2012, 19:08
Re: Reading files - by Vince - 22.11.2012, 19:33
Re: Reading files - by thefatshizms - 22.11.2012, 19:34

Forum Jump:


Users browsing this thread: 1 Guest(s)