Raised This Month: $ Target: $400
 0% 

String Operations


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
S34Qu4K3
Veteran Member
Join Date: Jan 2010
Location: Galicia
Old 10-09-2010 , 13:31   String Operations
Reply With Quote #1

Hi, i need help again

I have my string array: szText[192]
I put some words in the array using:
PHP Code:
public RegisterText(id)
{
    
client_cmd(id"messagemode Register_Text")
    
    
client_print(idprint_center"Write String")
    
set_hudmessage(255000.00.000.14.00.010.01, -1)
    
ShowSyncHudMsg(idg_MsgSync2"^n^n^n  Write String")
    
    return 
PLUGIN_CONTINUE;
}

public 
Text_register(id)
{
    
read_argsszText191 )
    
remove_quotesszText )
    
trim szText )
        
    
    
copyText[id], charsmaxText ), szText )
    
    
client_printidprint_chat"Tu string es: %s"Text[id] )
    
RegisterPassword(id)
    return 
PLUGIN_CONTINUE;
    

Now i want to put each 2 words of the string in a independent array but i donīt have any idea to do this

I want to do something like that

He --> Array1
ll ---> Array2
o^0 --->Array3
__________________

- ASM2SMA: Experimental AMXX Assembly encoder

- Defuse Bar Fix

Quote:
Originally Posted by Arkshine
I DON'T WANT TO SEE NOOOOOOOOOOOOOOO AHHHHH. MY EYES ARE ALREADY HURT.

Last edited by S34Qu4K3; 10-09-2010 at 13:37.
S34Qu4K3 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 10:18.


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