Raised This Month: $51 Target: $400
 12% 

Solved VFormat in natives


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
MAGNAT2645
Senior Member
Join Date: Nov 2015
Location: AlliedMods.net
Old 07-18-2017 , 00:57   VFormat in natives
Reply With Quote #1

How i can use VFormat in native callback? Or i can't?
I have 7 arguments in native (last is '...' symbol)

PHP Code:
SetGlobalTransTarget(iClient);
char message[256], buffer[256];
GetNativeString(6messagesizeof(message));
VFormat(buffersizeof(buffer), message7); 
PHP Code:
Exception reportedArgument index is invalid
P.S. I know that AMX Mod have vdformat() but is there something familiar for SourceMod?
__________________

Last edited by MAGNAT2645; 07-18-2017 at 01:20.
MAGNAT2645 is offline
Impact123
Veteran Member
Join Date: Oct 2011
Location: Germany
Old 07-18-2017 , 01:14   Re: VFormat in natives
Reply With Quote #2

You're looking for FormatNativeString.
__________________
Impact123 is offline
MAGNAT2645
Senior Member
Join Date: Nov 2015
Location: AlliedMods.net
Old 07-18-2017 , 01:20   Re: VFormat in natives
Reply With Quote #3

Big thanks, I really didn't know that this function exist. I should read more API documentation
__________________
MAGNAT2645 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 14:50.


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