This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

[WIKI]HUD Text Channels


  
 
 
Thread Tools Display Modes
Author Message
lantz69
AMX Mod X Beta Tester
Join Date: Mar 2004
Location: Sweden, Skåne
Old 03-07-2006 , 05:20   [WIKI]HUD Text Channels
#1

The code that explains how to use the new hudsystem on amxmod 1.70 has one error.
http://wiki.tcwonline.org/index.php/..._Text_Channels
Code:
new g_MyMsgSync   public plugin_init() {     register_clcmd("/show", "showMsg")     register_clcmd("/what", "whatMsg")         new g_MyMsgSync = CreateHudSyncObj() }   public showMsg(id) {     //last parameter is not needed     set_hudmessage(0, 255, 255, -1.0, 0.35, 0, 6.0, 6.0, 0.5, 0.15)     //use this instead of show_hudmessage     ShowSyncHudMsg(id, g_MyMsgSync, "You have been shown a message!") }   public whatMsg(id) {     set_hudmessage(0, 255, 255, -1.0, 0.30, 0, 6.0, 6.0, 0.5, 0.15)     ShowSyncHudMsg(id, g_MyMsgSync, "what....") }
Should be
Code:
new g_MyMsgSync   public plugin_init() {     register_clcmd("/show", "showMsg")     register_clcmd("/what", "whatMsg")         g_MyMsgSync = CreateHudSyncObj() }   public showMsg(id) {     //last parameter is not needed     set_hudmessage(0, 255, 255, -1.0, 0.35, 0, 6.0, 6.0, 0.5, 0.15)     //use this instead of show_hudmessage     ShowSyncHudMsg(id, g_MyMsgSync, "You have been shown a message!") }   public whatMsg(id) {     set_hudmessage(0, 255, 255, -1.0, 0.30, 0, 6.0, 6.0, 0.5, 0.15)     ShowSyncHudMsg(id, g_MyMsgSync, "what....") }
Changed this in plugin_init
Code:
new g_MyMsgSync = CreateHudSyncObj()
to
Code:
g_MyMsgSync = CreateHudSyncObj()
__________________
Using: Amxmodx 1.8.1.xxxx, cstrike
http://www.vanilla.se/
lantz69 is offline
BAILOPAN
Join Date: Jan 2004
Old 03-07-2006 , 05:25  
#2

helloo... it's a wiki... click the "edit" button :p
__________________
egg
BAILOPAN is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 03-07-2006 , 05:39  
#3

Done ;]
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
 



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 11:54.


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