Raised This Month: $ Target: $400
 0% 

Copy strings id


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
dFF
sıɹɹoɥɔ ʞɔnu
Join Date: Oct 2009
Old 03-24-2011 , 14:34   Copy strings id
Reply With Quote #1

PHP Code:
#include amxmodx

new string33 ][ 32 ]

public 
plugin_init() 
{
    
register_clcmd"set""pset" )
    
register_clcmd"rem""prem" )
    
register_clcmd"rem2""prem2" )
}

public 
psetid )
{
    
copystringid ], 31"test" )
    
    
server_print"** %s | %d"stringstring )
}

public 
premid )
{
    
copystringid ], 31"" )
    
    
server_print"*** %s | %d"stringstring )
}

public 
prem2id )
{
    
stringid ][ ] = '^0'
    
//string[ id ] = "^0"
    
    
server_print"**** %s | %d"stringstring )

Command I used

set and rem2 and the result:
Code:
** ****
Why ? Why not show me the text and the value ?

Another question, How is the best method to reset the strings value ?


PHP Code:
copystringid ], 31"" )

or

stringid ][ ] = '^0'

or

stringid ] = "^0" 

Last edited by dFF; 03-24-2011 at 14:36.
dFF 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 14:35.


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