Changing a number in a file using 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: Changing a number in a file using Dini (
/showthread.php?tid=112127)
Changing a number in a file using Dini -
acade - 05.12.2009
Hello, I'm looking to set an admin level using a /setadmin command but how do I use Dini to do this?
dini_IntSet(filename[], key[], value)
I know is the command I have to use, but how?
Re: Changing a number in a file using Dini -
MJ! - 05.12.2009
You can't with dini .. Dini is just for writting files ... you must use dudb
Ex: udb_UserSetInt
Re: Changing a number in a file using Dini -
acade - 05.12.2009
Ok thanks.
Re: Changing a number in a file using Dini -
Grim_ - 05.12.2009
Can you explain more?
If you are just trying to change the value of the admin level, just use dini_IntSet again, because it will just change the existing value in the file.