Raised This Month: $ Target: $400
 0% 

Native Text Formatting


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 06-16-2009 , 05:22   Native Text Formatting
Reply With Quote #1

.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?
__________________
hleV is offline
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 14:05.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode