[SOLVED] Help, dini_Set..
#1

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.
Reply
#2

Anyone?
Reply
#3

dini_IntSet
Reply
#4

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..
Reply
#5

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?
Reply
#6

Oh.
damn..


Thanks!
Reply
#7

Quote:
Originally Posted by Faith
Thanks!
No problem.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)