zade_o Posted December 2, 2008 Author Share Posted December 2, 2008 ```Sub CheckSTR(Index) Dim currentlvl Dim currentxp Dim nextlvl Dim tnl Call PlayerMsg(Index,"Checking str...",15) currentlvl=GetPlayerSTR(Index) nextlvl=currentlvl+1 tnl=GetVar("Scripts\levels.ini","lvl",""&nextlvl) Call PlayerMsg(Index,"cl: "¤tlvl&" nl:"&nextlvl&" tnl:"&tnl,15) currentxp=GetVar("Scripts\db\"&GetPlayerName(Index)&".ini","STR","xp") Call PlayerMsg(Index,"str update check: cl:"¤tlvl&" cx:" & currentxp,15) Call PlayerMsg(Index," current then next:"¤txp&" "&tnl,15) If currentxp>tnl Then Call PlayerMsg(Index,"here",15) End IfEnd Sub```Ok I had to make some changes to that sub and now I can't get it to work. Every player msg works except the one in the if statement. and the PlayerMSg before that displays this:"current then next: 672 84"WHAT THA FUCK Link to comment Share on other sites More sharing options...
DarkMazer Posted December 2, 2008 Share Posted December 2, 2008 What does levels.ini look like? Link to comment Share on other sites More sharing options...
zade_o Posted December 2, 2008 Author Share Posted December 2, 2008 [lvl]1=02=833=1744=2765=3886=5127=6508=8019=96910=115411=135812=158413=183314=210715=241116=274617=311518=352319=397320=447021=501822=562423=629124=702825=784226=874027=973028=1082429=12031thats a sample Link to comment Share on other sites More sharing options...
Baron Posted December 2, 2008 Share Posted December 2, 2008 tryIf int(currentxp)>int(tnl) Then Link to comment Share on other sites More sharing options...
zade_o Posted December 2, 2008 Author Share Posted December 2, 2008 score. got it. I thought i tried that but i actually tried the reverse…(int)tnl isntead of int(tnl)....freakin javascript stuck in my head. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now