1 registered members (TipmyPip),
18,618
guests, and 5
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: I may be stupid, but I'm not crazy! caution LONG!
[Re: DdlV]
#429942
09/20/13 16:55
09/20/13 16:55
|
Joined: Jun 2013
Posts: 41 Ohio, USA
Pork
OP
Newbie
|
OP
Newbie
Joined: Jun 2013
Posts: 41
Ohio, USA
|
Hi Ddlv, The way it is written. The if is NEVER executed and buff is never loaded as near as I can tell because I can never find out what buff contains by using the printf function. Try it if you haven't.You'll see why I'm so confused. If I change the int count=1 to var count=0 and then compare to the var the program functions as expected. I'm happy. I found a way to make it work. I just don't know why it makes a difference on the type of variable defined. Shouldn't the script function the same way for var count=0 and int count=1 or bool count=true? Chnage the variable declaration type and see what happens. P
Last edited by Pork; 09/20/13 17:07.
|
|
|
|