AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   format_args (https://forums.alliedmods.net/showthread.php?t=9434)

XxAvalanchexX 01-18-2005 23:27

format_args
 
How does format_args work exactly? Is there a difference between "format_args(string,len,1)" and "read_argv(1,string,len)"? Is format_args an outdated version of read_argv or something? The include file and the funcwiki don't have much information.

Additionally, the only thing a forum search comes up with is this post I just made.

PM 01-19-2005 09:20

Well, this function is useful if you want to do format-like formatting in your own function, for example for some sort of logging function:

Code:
my_log_function(LOG_FATAL_ERROR_CRASH_SERVER_AND_BURN_MACHINE, "FATAL ERROR!!!1111 omgomgomg ERROR NUMBAH: %d", 1234);


I remember there was a post by OLO that mentioned this on AMX forums... Ah yes, here: http://djeyl.net/forum/index.php?sho...hl=format_args


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

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