Flick3rR please stop posting when you don't know the answer.
@Crizzatu
First ensure that the native is registered correctly:
PHP Code:
public plugin_natives()
{
register_native( "get_game", "native_get_game" ):
}
Next, you should note that strings canot be returned through natives as they can from usual stocks.
The string will be sent back and passed byref. So here's how it should look:
PHP Code:
public native_get_game(/*iPlugin, iParams*/)
{
return set_string( 2, gs_DaysList[ get_param( 1 )-1 ], get_param( 3 ) );
}
To get the name from the other plugin, you would do something like this:
PHP Code:
public SomeFunction()
{
./*
<^> For example let's get the name of day number 1.
*/
new szDay[ 32 ];
get_game( 1, szDay, charsmax( szDay ) );
/*
<^> szDay now holds the day name.
*/
}
Make sure that you have the following inside your include file ( if you have one ), or otherwise in your plugin:
PHP Code:
native get_game( iIndex, szName[], iLen );
__________________