SA-MP Forums Archive
dini question.. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: dini question.. (/showthread.php?tid=173416)



dini question.. - rbN. - 02.09.2010

How could you do that something writes you in a file, and then it gets the file and if your name is in that file, it gives you a message..

Example:

I enter a checkpoint.. Now it writes in a file that I was in the checkpoint, and the next time I enter that checkpoint, it doesn't write me and give a message..

/edit:

This crashes me:

pawn Код:
new file[256];
        format(file,sizeof(file),"rStuntCheck/%d.sav",stuntid);
        if(!dini_Exists(file))
        {
            dini_Create(file);
            print("CREATED");
        }
The dini_Create(file) = crash 2 server :P