Raised This Month: $ Target: $400
 0% 

Parse method


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
bibu
Veteran Member
Join Date: Sep 2010
Old 02-18-2012 , 06:21   Parse method
Reply With Quote #1

What would be the difference and which one should be used?

PHP Code:
    /* 1. Method */
    
    
new szText[14], iTextLen
    read_args
(szTextsizeof(szText) - 1)
    
    
szText[sizeof(szText) - 1] = 0
    iTextLen 
strlen(szText)
        
    
szText[iTextLen 1] = 0;

    new 
szArg1[4], szArg2[3], szArg3[6]
    
parse(szText[1], szArg1sizeof(szArg1) - 1szArg2sizeof(szArg2) - 1szArg3sizeof(szArg3) - 1)
    
    
szArg1[sizeof(szArg1) - 1] = 0
    szArg2
[sizeof(szArg2) - 1] = 0
    szArg3
[sizeof(szArg3) - 1] = 0
    
    
/* 2. Method */
    
    
new szArgs[14], szArg1[4], szArg2[3], szArg3[6]
    
read_args(szArgscharsmax(szArgs))
    
remove_quotes(szArgs)
    
parse(szArgsszArg1charsmax(szArg1), szArg2charsmax(szArg2), szArg3charsmax(szArg3)) 
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu 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 18:40.


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