View Single Post
Adventurously
New Member
Join Date: Mar 2024
Old 04-01-2024 , 15:47   Re: Dynamic number of arguments in functions
Reply With Quote #27

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