Raised This Month: $ Target: $400
 0% 

Copy strings id


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 03-24-2011 , 15:04   Re: Copy strings id
Reply With Quote #2

%s should match with string[id] and not string

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 ], charsmax(string[]), "test" )
    
    
server_print"**** %s"string[id] )
}

public 
premid )
{
    
copystringid ], charsmax(string[]), "" )
    
    
server_print"**** %s"string[id] )
}

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

__________________
- tired and retired -

- my plugins -
ConnorMcLeod 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