write_short()
Ok, so i have this script... but i don't understand these write_short. I've tested some different values with various results.
Can i make them more logically? If so, can someone explain how? Lets say I want the message to hold for 13 seconds... what would i type in at "holdtime" to make it last that long? Code:
|
Re: write_short()
To hold it for 13 seconds, use 13.0. I'm pretty sure shorts are floats.
I would use set_hudmessage() and show_hudmessage(), or even the hudmessage generator. |
Re: write_short()
No.
byte : int char : int short : int long : int angle : float coord : float string : string entity : int Yes i know, but i don't want to use them. No way, I would never use the hudmessage generator. |
Re: write_short()
this is how its done in set_hudmessage/show_hudmessage
(http://svn.tcwonline.org/viewvc.cgi/...xmodx&view=log) Code:
unsigned short FixedUnsigned16(float value, float scale) |
Re: write_short()
I know but I can't do "return (short)output" in pawn (?).
|
Re: write_short()
read this has useful info and good links:
http://forums.alliedmods.net/showthread.php?t=41125 |
Re: write_short()
That's not what i need...
|
Re: write_short()
Quote:
Quote:
|
Re: write_short()
For that matter, you don't need to use the FixedSigned16() function, since it deals with C++ aspects and not pawn.
|
Re: write_short()
This wont work... ok? The message shows up but dissapears like 0.1 secs later. ( and that isn't at channel 2 so scrollmsg isn't writing it over. )
Is there an error? Code:
Quote:
|
| All times are GMT -4. The time now is 04:59. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.