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

[stock problem] String formatted incorrectly - parameter 4 (total 3)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Craxor
Veteran Member
Join Date: Jan 2016
Location: Romania
Old 05-22-2017 , 02:42   [stock problem] String formatted incorrectly - parameter 4 (total 3)
Reply With Quote #1

Code:
stock bdd( id, const Test[], any:... ) {     static buff[64];
    vformat( buff, charsmax(buff), Test, 4 );
    client_print( id, print_console, buff ); }

Server console output when i'm using the stock:
Code:
L 05/22/2017 - 09:37:50: String formatted incorrectly - parameter 4 (total 3)
L 05/22/2017 - 09:37:50: [AMXX] Displaying debug trace (plugin "test.amxx")
L 05/22/2017 - 09:37:50: [AMXX] Run time error 25: parameter error 
L 05/22/2017 - 09:37:50: [AMXX]    [0] debug.inc::bdd (line 48)
L 05/22/2017 - 09:37:50: [AMXX]    [1] test.sma::example (line 11)
What i'm doing wrong ?

Last edited by Craxor; 05-22-2017 at 02:43.
Craxor is offline
Send a message via ICQ to Craxor
PRoSToTeM@
Veteran Member
Join Date: Jan 2010
Location: Russia, Ivanovo
Old 05-22-2017 , 02:43   Re: [stock problem] String formatted incorrectly - parameter 4 (total 3)
Reply With Quote #2

Code:
client_print( id, print_console, buff );
->
Code:
client_print( id, print_console, "%s", buff );
__________________
PRoSToTeM@ is offline
Send a message via ICQ to PRoSToTeM@ Send a message via Skype™ to PRoSToTeM@
Craxor
Veteran Member
Join Date: Jan 2016
Location: Romania
Old 05-22-2017 , 02:44   Re: [stock problem] String formatted incorrectly - parameter 4 (total 3)
Reply With Quote #3

Lol, you're realy fucking fast... i will try and edit this reply.

EDIT: I have exactly the same problem, is not working.

Last edited by Craxor; 05-22-2017 at 02:46.
Craxor is offline
Send a message via ICQ to Craxor
PartialCloning
Senior Member
Join Date: Dec 2015
Old 05-22-2017 , 03:01   Re: [stock problem] String formatted incorrectly - parameter 4 (total 3)
Reply With Quote #4

vformat(buff, charsmax(buff), Test, 3);
PartialCloning is offline
Craxor
Veteran Member
Join Date: Jan 2016
Location: Romania
Old 05-22-2017 , 03:24   Re: [stock problem] String formatted incorrectly - parameter 4 (total 3)
Reply With Quote #5

Still not working.
Craxor is offline
Send a message via ICQ to Craxor
Craxor
Veteran Member
Join Date: Jan 2016
Location: Romania
Old 05-22-2017 , 03:28   Re: [stock problem] String formatted incorrectly - parameter 4 (total 3)
Reply With Quote #6

Now is working, problem solved, thank you guys

I forgot to recompile the plugin
Craxor is offline
Send a message via ICQ to Craxor
Reply


Thread Tools
Display Modes

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 03:25.


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