SA-MP Forums Archive
[Bool problem solved] dini_Float returns 0.0? - 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: [Bool problem solved] dini_Float returns 0.0? (/showthread.php?tid=89096)



[Bool problem solved] dini_Float returns 0.0? - Remi-X - 30.07.2009

I can't do this... dini_Int and dinit_Bool both makes a tag mismatch..
New problem: dini_Float returns 0.0. Read last post from me.


Re: How to get a bool out of a file with Dini? - Jefff - 30.07.2009

Use
Код:
dini_BoolSet
and later
Код:
dini_Bool



Re: How to get a bool out of a file with Dini? - Remi-X - 30.07.2009

Doesn't work...

BTW: dini_Bool and dini_Int are the same


Re: How to get a bool out of a file with Dini? - Jefff - 30.07.2009

Hm xD show your code maybe


Re: How to get a bool out of a file with Dini? - Remi-X - 30.07.2009

I am now on my PSP, so I can't give the full code:
pawn Код:
enum Blah
{
  bool:Thingy
}
new Cow[MAX_PLAYERS][Blah]

//DCMD Register
dini_BoolSet(file, "boolthing", false); //'file' does work because i formatted the filename
Cow[playerid][Thingy] = false

//DCMD login
Cow[playerid][Thinghy] = dini_Int(file, "boolthing");//here is the warning
Tag Mismatch


Re: How to get a bool out of a file with Dini? - Jefff - 30.07.2009

Then use
Код:
Cow[playerid][Thinghy] = dini_Bool(file, "boolthing");
? its tag.. to?


Re: How to get a bool out of a file with Dini? - Remi-X - 30.07.2009

dini_Bool and dini_Int are exactly the same when you take a look in dini.inc, so tgat can't be the problem. I even tryed dini_Bool, without succes.


Re: How to get a bool out of a file with Dini? - Jefff - 30.07.2009

Int is strval
Bool is booltrval so not the same


Re: How to get a bool out of a file with Dini? - Antonio [G-RP] - 30.07.2009

cows and boolthingy's.. what kind of script is this? a farmers milking schedual?


Re: How to get a bool out of a file with Dini? - Remi-X - 30.07.2009

@jefffffff:
not here, so i'm going to edit that.

@antonio:
rofl, its not the real script, its just a lolled example