Raised This Month: $ Target: $400
 0% 

string reading problems


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
SpaceRip
Junior Member
Join Date: Aug 2012
Old 08-17-2012 , 08:18   string reading problems
Reply With Quote #1

Hello, i try to do something here

if text contains \x then do something and skip text "\x"
here is code
PHP Code:
            for (0127y++)
            {
                if ( !
m[y] )
                    break

                if( 
)
                {
                    
0
                    
continue
                }

                if ( 
m[y] == '\')
                {    
                    d = 1
                    c = str_to_num(m[y + 1])
                    print( i, "color %d - m: %s", c, m[y + 1] )
                    continue
                }

code run in loop, it check m[128] string variable the problem is that this fails somehow
sometime it crab a wrong thing, m[23] == '\' , m[24] == '1' , m[25] == '3'
and i will got 3 with this code, how is this possible?

Last edited by SpaceRip; 08-17-2012 at 08:20. Reason: more code
SpaceRip is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:41.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode