PHP Code:
#include amxmodx
new string[ 33 ][ 32 ]
public plugin_init()
{
register_clcmd( "set", "pset" )
register_clcmd( "rem", "prem" )
register_clcmd( "rem2", "prem2" )
}
public pset( id )
{
copy( string[ id ], 31, "test" )
server_print( "** %s | %d", string, string )
}
public prem( id )
{
copy( string[ id ], 31, "" )
server_print( "*** %s | %d", string, string )
}
public prem2( id )
{
string[ id ][ 0 ] = '^0'
//string[ id ] = "^0"
server_print( "**** %s | %d", string, string )
}
Command I used
set and rem2 and the result:
Why ? Why not show me the text and the value ?
Another question, How is the best method to reset the strings value ?
PHP Code:
copy( string[ id ], 31, "" )
or
string[ id ][ 0 ] = '^0'
or
string[ id ] = "^0"