PenUltima Online Forum Index Official Core: 096.7
Official Core: 097 2008-02-26
Donate towards the POL web hosting bill!
 POL Home   FAQ   Search    Memberlist   Usergroups    Register    Profile   Log in to check your private messages   Log in
CDbl Problem in AP_CheckSkillCap()

 
Post new topic   Reply to topic    PenUltima Online Forum Index -> Distro Bug Reports
Display posts from previous:   

Author Message
Battousai



Joined: 27 Dec 2007
Posts: 5
Location: Netherlands

PostPosted: Thu May 15, 2008 5:04 am    Post subject: CDbl Problem in AP_CheckSkillCap() Reply with quote

in skills.inc function AP_CheckSkillCap()

Code:
 return ( total >= cap_val );


if my total is 0 and my cap_val is 1200 it returns 1;
When i both covert them into CInts it returns 0;

Author Message
Battousai



Joined: 27 Dec 2007
Posts: 5
Location: Netherlands

PostPosted: Thu May 15, 2008 5:19 am    Post subject: Reply with quote

I parsed the cap_val to Dbl now. And it works.
the cap_val is/was still a String.

Author Message
Battousai



Joined: 27 Dec 2007
Posts: 5
Location: Netherlands

PostPosted: Thu May 15, 2008 6:39 am    Post subject: Reply with quote

NvM. Ignore my post. Embarassed

Post new topic   Reply to topic    PenUltima Online Forum Index -> Distro Bug Reports All times are GMT - 4 Hours
Page 1 of 1

 




Powered by phpBB © 2001, 2005 phpBB Group :: Theme & Graphics by GHS & Scott E. Royalty