Raised This Month: $ Target: $400
 0% 

[deleted]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Sneakpeek
Member
Join Date: Dec 2005
Location: Who cares really?
Old 04-30-2006 , 09:07   [deleted]
Reply With Quote #1

[deleted]

Last edited by Sneakpeek; 01-25-2014 at 02:54.
Sneakpeek is offline
Sneakpeek
Member
Join Date: Dec 2005
Location: Who cares really?
Old 04-30-2006 , 10:39  
Reply With Quote #2

I fixed it.
PM helped me on AIM, thanks.
__________________
Yes, you did
Sneakpeek is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 04-30-2006 , 18:07  
Reply With Quote #3

Use -1 for the channel if you're using AMXX 1.61+.
__________________
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
MaximusBrood
Veteran Member
Join Date: Sep 2005
Location: The Netherlands
Old 04-30-2006 , 19:13  
Reply With Quote #4

This should work:

You forgot the [] since the argument is a string

Code:
public myfunction(id) {     ShowHudmessage(id, "my hudmessage") } public ShowHudmessage(id, hudmessage[]) {     set_hudmessage(225, 0, 0, -1.0, 0.3, 0, 0.25, 3.0, 0.0, 0.0, -1)     show_hudmessage(id, hudmessage) }

Note that this is Amxmodx version 1.61 and higher only!
__________________
Released six formerly private plugins. Not active here since ages.
MaximusBrood is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 04-30-2006 , 19:20  
Reply With Quote #5

Forgot about my stock that I had originally made for WoW mod

Code:
enum {     MSG_CENTER_TOP = 0,     MSG_CENTER_MIDDLE,     MSG_CENTER_BOTTOM,         MSG_LEFT_TOP,     MSG_LEFT_MIDDLE,     MSG_LEFT_BOTTOM,         MSG_RIGHT_TOP,     MSG_RIGHT_MIDDLE,     MSG_RIGHT_BOTTOM } stock show_message(id , color[3] , pos , Float:time , message[]) {     new Float:x , Float:y;     switch(pos)     {         case MSG_CENTER_TOP:    x = -1.0 , y = 0.2;         case MSG_CENTER_MIDDLE: x = -1.0 , y = -1.0;         case MSG_CENTER_BOTTOM: x = -1.0 , y = 0.75;                 case MSG_LEFT_TOP:  x = 0.5 , y = 0.17;         case MSG_LEFT_MIDDLE:   x = 0.5 , y = 0.40;         case MSG_LEFT_BOTTOM:   x = 0.5 , y = 0.65;                 case MSG_RIGHT_TOP: x = 0.5 , y = 0.2;         case MSG_RIGHT_MIDDLE:  x = 0.45 , y = 0.42;         case MSG_RIGHT_BOTTOM:  x = 0.45 , y = 0.65;                 default: x = -1.0 , y = -1.0;     }         set_hudmessage(color[0] , color[1] , color[2] , x , y , _ , _ , time , _ , _ , -1);     show_hudmessage(id , message);     return 1; } // aww, my indenting got messed up
Example usage:
Code:
show_message(id , {255,255,255} , MSG_CENTER_MIDDLE , 2.0 , "gaben");
Note: The coordinates are probably off so you might want to check them!
__________________
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
Reply



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 05:13.


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