10000 > 9500 = false?

Here you can post threads requesting help on the official POL Ultima Online Emulator Core 096.
Note: Core 096 is no longer officially supported.

Moderator: POL Developer

Post Reply
Poi
Grandmaster Poster
Posts: 298
Joined: Fri Apr 14, 2006 9:36 am

10000 > 9500 = false?

Post by Poi » Sun May 08, 2011 1:07 pm

I am at a total loss here.. In my script's if statement:
if (text > GetAmtGoldBank(bankbox))

and for testing purposes, text is 10000 and the function returns 9500(I made triple sure that there are in fact the values)
but for some (probably) simple reason its turning out false.. if I put 10000 > 9500 directly it works, so I'm assuming it has something to do with using variables, so I am wondering if there is some sort of int() or num() function I can use that converts the variables to... calculatable(for lack of a better word) numbers
Bittiez/Syp/Taz

mr bubbles
Grandmaster Poster
Posts: 120
Joined: Thu Jan 18, 2007 2:34 am

Re: 10000 > 9500 = false?

Post by mr bubbles » Sun May 08, 2011 4:42 pm

Try this

Code: Select all

if (CInt(text) > GetAmtGoldBank(bankbox))

Poi
Grandmaster Poster
Posts: 298
Joined: Fri Apr 14, 2006 9:36 am

Re: 10000 > 9500 = false?

Post by Poi » Mon May 09, 2011 4:56 am

Aha! perfect! Thank you so much :)
Bittiez/Syp/Taz

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest