Question about dini - 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: Question about dini (
/showthread.php?tid=178874)
Question about dini -
Seven. - 24.09.2010
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**
Re: Question about dini -
acade - 24.09.2010
Yes you can, I can't remeber the function but look through the dini.inc
Re: Question about dini -
Seven. - 24.09.2010
Thanks, That was all i needed to know
Re: Question about dini -
Mike_Peterson - 24.09.2010
dini_set and dini_int to read
Re: Question about dini -
Seven. - 24.09.2010
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
Re: Question about dini -
Mike_Peterson - 24.09.2010
: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:
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);
}
Re: Question about dini -
Seven. - 24.09.2010
Haha, ty