Question about dini
#1

Can i store player messages in dini to? like

/remember [text to remember]

and it will set that to his text remember and when typing

/rem

Your text to remember was: **get's the message from dini file**
Reply
#2

Yes you can, I can't remeber the function but look through the dini.inc
Reply
#3

Thanks, That was all i needed to know
Reply
#4

dini_set and dini_int to read
Reply
#5

mmh,

pawn Код:
if(!dini_Exists("/msgs/%s.msg",gPlayer[playerid][gName]))
    {
    dini_Create("/msgs/%s.msg",gPlayer[playerid][gName]);
    dini_Set("/msgs/%s.msg", "wmsg", gPlayer[playerid][gName],msg);
    }
Код:
warning 202: number of arguments does not match definition
warning 202: number of arguments does not match definition
warning 202: number of arguments does not match definition
Reply
#6

:P, you cant make strings in it.. ull need to format it
ill edit my post when i scripted it for u

edit:

at top of ur variables:
Код:
new file[128];
then above the dini_Exists thing this:
Код:
format(file,sizeof(file),"msgs/%s.txt",gPlayer[playerid][gName]);
then the exist thing edited
Код:
if(!dini_Exists(file))
{
dini_Create(file);
dini_Set(file, "wmsg",msg);
}
Reply
#7

Haha, ty
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)