AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   help with message function (https://forums.alliedmods.net/showthread.php?t=61381)

PrEn1umz 09-28-2007 18:29

help with message function
 
hello, i'm working on a plugin and i want to use this function in it :
Code:
public kz_hudmessage(id, const msg[], {Float,Sql,Result,_}:...) {     static message[256]     vformat(message[0], 252, msg, 4)     set_hudmessage(255, 0, 0, -1.0, 0.8, 0, 2.0, 2.0, 0.2, 0.2, 1)     show_hudmessage(id, message) }
can someone explain me what is wrong in my code ?

Arkshine 09-28-2007 19:30

Re: help with message function
 
Try this:

Code:
public kz_hudmessage(id, msg[], {Float,Sql,Result,_}:...) {     static message[256]     vformat(message, 255, msg, 3)     set_hudmessage(255, 0, 0, -1.0, 0.8, 0, 2.0, 2.0, 0.2, 0.2, 1)     show_hudmessage(id, message) }

ConnorMcLeod 09-29-2007 02:12

Re: help with message function
 
Also something that is only hud_message related that could be usefull for you :

http://www.amxmodx.org/funcwiki.php?...sync&go=search

PrEn1umz 09-29-2007 06:56

Re: help with message function
 
thanks for ur help it works !


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

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