Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Don't see the error…........


zade_o
 Share

Recommended Posts

```
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 If

End 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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...