Raised This Month: $ Target: $400
 0% 

client_print


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 11-22-2010 , 21:52   Re: client_print
Reply With Quote #1

Quote:
Originally Posted by ProIcons View Post
just any?

any:...
That means extra arguments are not limited to a specific tag.
If "..." was only put there, compiler wouldn't let Float (for example) to be passed.

Example:
Code:
#include < amxmodx > public plugin_init( ) {     new Float:flValue;     test( "%f", flValue ); } test( format[], ... ) {     new message[ 192 ]     vformat( message, 191, format, 2 )         server_print( "%s", message ) }
That would give a tag mismatch error.
Code:
#include < amxmodx > public plugin_init( ) {     new Float:flValue;     test( "%f", flValue ); } test( format[], {Float,_}:... ) {     new message[ 192 ]     vformat( message, 191, format, 2 )         server_print( "%s", message ) }
That allows Floats and untagged variables to be passed.
Code:
#include < amxmodx > public plugin_init( ) {     new Float:flValue;     test( "%f", flValue ); } test( format[], any:... ) {     new message[ 192 ]     vformat( message, 191, format, 2 )         server_print( "%s", message ) }
That allows variables of all tags to be passed.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] 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 11:26.


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