SA-MP Forums Archive
[SOLVED] Help, dini_Set.. - 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: [SOLVED] Help, dini_Set.. (/showthread.php?tid=147813)



[SOLVED] Help, dini_Set.. - Faith - 14.05.2010

Hi.

I know a bit about dini_Set, but i'd like to know some more.

I have several created objects.
and these objects has a status:
Status = 0
Status = 1.


Is it possible to have these objects placed into a file, with their current status?
Something like:

Код:
[This is a command]
  Object1 = CreateObject blabla
  Status = 0;
  dini_Set("/Status.txt", Object1, Status);
Код:
[In file Status.txt]
Object1, 0
Object2, 1
Object3, 1
Object4, 0..
etc etc

I know i am missing something, but i'm not quite sure of what i am missing.


Any help appreciated.


Re: [NOT SOLVED] Help, dini_Set.. - Faith - 14.05.2010

Anyone?


Re: [NOT SOLVED] Help, dini_Set.. - Conroy - 14.05.2010

dini_IntSet


Re: [NOT SOLVED] Help, dini_Set.. - Faith - 14.05.2010

the dini_Set or dini_IntSet doesn't really matter as of now.

I'm probably missing some
new blalbla;


and some variables etc.

Cause it won't allow me to just say Objectname, Status..



Re: [NOT SOLVED] Help, dini_Set.. - Jeffry - 14.05.2010

pawn Код:
new object[256];
object = dini_Get("objects/Objects.cfg","Object1");
pawn Код:
dini_Set("objects/Objects.cfg", "Object1", 0); // here 0 or 1
File:

pawn Код:
Object1=0
Object2=1
Object=1
...
Is this what you mean?


Re: [NOT SOLVED] Help, dini_Set.. - Faith - 14.05.2010

Oh.
damn..


Thanks!


Re: [SOLVED] Help, dini_Set.. - Jeffry - 16.05.2010

Quote:
Originally Posted by Faith
Thanks!
No problem.