.sma:
Code:
public plugin_natives()
register_native("AddMsg", "_AddMsg", 1);
public _AddMsg(Cl, Msg[], any:...)
{
new Txt[128];
vformat(Txt, 127, Msg, 2);
set_hudmessage(blabla);
show_hudmessage(Cl, Txt);
}
.inc:
Code:
native AddMsg(Cl, Msg[], any:...);
Other .sma:
Code:
public SomeFunc(Cl)
{
new Name[32];
get_user_name(Cl, Name, 31);
AddMsg(Cl, "Test %s", Name);
}
It shows some shit like %)(/)D in-game. Why?
__________________