exposed VFormat() native
--HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40418
This commit is contained in:
parent
8db394c85d
commit
003fa1371e
@ -108,6 +108,21 @@ native Format(String:buffer[], maxlength, const String:format[], {Handle,Float,S
|
||||
*/
|
||||
native FormatEx(String:buffer[], maxlength, const String:format[], {Handle,Float,String,_}:...);
|
||||
|
||||
/**
|
||||
* Formats a string according to the SourceMod format rules (see documentation).
|
||||
* @note This is the same as Format(), except it grabs parameters from a parent parameter
|
||||
* stack, rather than a local. This is useful for implementing your own variable argument
|
||||
* functions.
|
||||
*
|
||||
* @param buffer Destination string buffer.
|
||||
* @param maxlength Maximum length of output string buffer.
|
||||
* @param format Formatting rules.
|
||||
* @param varpos Argument number which contains the '...' symbol.
|
||||
* Note: Arguments start at 1.
|
||||
* @return Number of bytes written.
|
||||
*/
|
||||
native VFormat(String:buffer[], maxlength, const String:format[], varpos);
|
||||
|
||||
/**
|
||||
* Converts a string to an integer.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user