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


Raised This Month: $ Target: $400
 0% 

Dynamic number of arguments in functions


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 10-03-2010 , 12:41   Re: Dynamic number of arguments in functions
Reply With Quote #1

fuser2 is a special value for players that shouldn't be used for value holding.
It is relevant to how much a player is affected by friction when landing on the ground.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
abdul-rehman
Veteran Member
Join Date: Jan 2010
Location: Khi, Pakistan
Old 10-03-2010 , 13:37   Re: Dynamic number of arguments in functions
Reply With Quote #2

Quote:
Originally Posted by Exolent[jNr] View Post
fuser2 is a special value for players that shouldn't be used for value holding.
It is relevant to how much a player is affected by friction when landing on the ground.
From where were you able to get this valuable information becoz i really need info about these various pev fields
__________________

My Plugins For ZP

Inactive due to College and Studies
abdul-rehman is offline
Send a message via Yahoo to abdul-rehman Send a message via Skype™ to abdul-rehman
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 10-03-2010 , 14:02   Re: Dynamic number of arguments in functions
Reply With Quote #3

Quote:
Originally Posted by abdul-rehman View Post
From where were you able to get this valuable information becoz i really need info about these various pev fields
http://forums.alliedmods.net/showthread.php?t=70295
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
Adventurously
New Member
Join Date: Mar 2024
Old 04-01-2024 , 15:47   Re: Dynamic number of arguments in functions
Reply With Quote #4

Ok thank you its very useful. But what if i want to create a wrapper to another function with dynamic arguments?

For example how to send dynamic attributes to the show_hudmessage function?

PHP Code:
// ... helpers.inc

stock show_hud_entity_info(playerId, const message[], any:...)
{
    
set_hudmessage(02550, -1.00.600.00.20.00.0);
    
show_hudmessage(playerIdmessage, ...any?); 

    return 
0;


Last edited by Adventurously; 04-01-2024 at 15:49.
Adventurously 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 08:02.


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