Yea, your code is wrong.
Code:
public plugin_natives( ) {
register_native( "get_some_string", "_get_some_string" );
}
public _get_some_string( iPlugin, iParams ) {
static const szStrings[ ][ ] = {
"rawr", "hello", "i like cookies"
};
set_string( 1, szStrings[ random( sizeof( szStrings ) ) ], get_param( 2 ) );
return 1;
}
Code:
native get_some_string( szString[ ], const iMaxLen );
// ---
new szString[ 32 ];
get_some_string( szString, 31 );
log_amx( "Some String: %s", szString );
__________________