/addnote
#1

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?
Reply
#2

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
Reply
#3

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


Forum Jump:


Users browsing this thread: 1 Guest(s)