Jump to content

pls help me whit string


bandi94

Recommended Posts

FIXED I SOLVE THE PROBLEM THX FOR ALL

ok i make a big mistake( a sh***) :evil: i have on account data saved a win counter the old script it was lag it loop's something over and over and i start make it again from 0 and i make a big sh** and i save the win count (number's) as string and i have a win top counter and now bk is saved as tostring and the "if" don't compare it like the number's (1>5>10...) it compare from the string length ( "1" length is 1 , "300" length is 3 and it miss up the top counter ( who have 1 win is top 1 and who have over 1000 is top 300-400)

now is a way to convert the string bk to number's a lot of player's play a lot for that win socre and i don't wanna to reset the win's

thx for helping i hope is a way

Edit: i have an idea but i need litel help how to separate the characters like if the string is "431" then character1="4" character2="3" character3="1" and then i compare each character like if character1=="1" the characterok1=1 elseif character1=="2" then characterok1=2 ....

but i don't know how the separate the characters from a string

Link to comment

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...