SA-MP Forums Archive
I don't know how to use 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: I don't know how to use dini !! (/showthread.php?tid=70572)



I don't know how to use dini !! - Ryhanna - 25.03.2009

Hey...

I tried to make my own adminscript, But for this, I need .ini files.
So I tried to follow the "Making a simple Adminscript"-Tutorial in SAMP Wikis.
I don't understand anything! I copied all the lines and pasted in, but I get more
Errors than the Wiki says. Can anybody help me please ? I don't understand dini!!



Re: I don't know how to use dini !! - Weirdosport - 25.03.2009

Look in the discussion section, I posted solutions to some of the errors there.

Also look here, on how to use Dini: Link


Re: I don't know how to use dini !! - Ryhanna - 25.03.2009

Yeah, but I get a error an d I don't know how to do this:

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
	new tmp[256];
	new password;
	password = strval(tmp);
	if(strcmp(cmdtext, "/register", true) == 0)
	{
    dini_Create("/folder/file.ini");
    dini_Set("/folder/file.ini", "Name", "playerid");
    dini_Set("/folder/file.ini", "Password", "%s",password);
    return 1;
  }
	return 1;
}
I know it's very wrong but It's my first try with dini


Re: I don't know how to use dini !! - Weirdosport - 25.03.2009

You could always look at the simple admin filterscript as to how they did it.. and yes that is pretty wrong..