I know I return bad,cuz it returns not a value, so how to return it as a text/text message by
playersh[id]?
Cuz I need to put it in another plugin ,something like this :
Second plugin :
PHP Code:
pos += format(szMotd[pos], 2047-pos, "RankShit : %s<br><br>", get_user_sh(id))
Include file:
PHP Code:
native get_user_sh(id)
First plugin :
PHP Code:
#define MAXSHIT 2
new const RANKSHIT[MAXSHIT][] = { "bull.....", "cow....."}
new playersh[33];
public plugin_natives()
{
register_native("get_user_sh", "native_get_user_sh", 1);
}
PHP Code:
// Native: return text
public native_get_user_sh(id)
{
return RANKSHIT[playersh[id]];
}