SA-MP Forums Archive
/addnote - 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)
+--- Thread: /addnote (/showthread.php?tid=582171)



/addnote - Lajko1 - 18.07.2015

Guys I'm learning with yini how can I save multiple notes to player for example /addnote (id) (note) so when I will want to check them it will display them like this?

Jailed for DM
Insulting
Test 1
Test 2
E t c

so far I don't want to use:

enum
{
Note1
Note2
Note3
Note4 ...

How can I write those notes with only 1 command?


Re: /addnote - Threshold - 18.07.2015

I'd personally just create a .txt file using fwrite, then read the lines using fread.

https://sampwiki.blast.hk/wiki/Fopen
https://sampwiki.blast.hk/wiki/Fwrite
https://sampwiki.blast.hk/wiki/Fread
https://sampwiki.blast.hk/wiki/Fclose


Re: /addnote - Lajko1 - 19.07.2015

Does this thing save to player? so for example if I will want to display notes of player it will show them ?