Raised This Month: $ Target: $400
 0% 

%s error


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
undead52
Senior Member
Join Date: Dec 2016
Old 10-10-2017 , 14:18   %s error
Reply With Quote #1

console get %s what is the problem ?
PHP Code:
new abc[32] = "co"
    
formatex(abccharsmax(abc), "co")  
    new 
Key str_to_num(Data
     
    switch (
Key
    { 
        case 
0
        { 

            
Send_Cmd(id"%s example"abc

Last edited by undead52; 10-10-2017 at 14:22.
undead52 is offline
DjSoftero
Veteran Member
Join Date: Nov 2014
Location: Lithuania
Old 10-10-2017 , 14:55   Re: %s error
Reply With Quote #2

is Send_Cmd a custom function? if yes then show it. The reason that it shows %s might be that Send_Cmd doesn`t support formating
__________________
retired chump

Last edited by DjSoftero; 10-10-2017 at 14:55.
DjSoftero is offline
KiLLeR.
Senior Member
Join Date: Jul 2014
Location: Bulgaria
Old 10-11-2017 , 03:45   Re: %s error
Reply With Quote #3

Quote:
Originally Posted by DjSoftero View Post
is Send_Cmd a custom function? if yes then show it. The reason that it shows %s might be that Send_Cmd doesn`t support formating
Yes, that's the only possible reason. He can simply use console_print...
KiLLeR. is offline
GrimmReaper
Junior Member
Join Date: Oct 2017
Location: Name's the Clue
Old 10-11-2017 , 05:39   Re: %s error
Reply With Quote #4

Quote:
Originally Posted by KiLLeR. View Post
Yes, that's the only possible reason. He can simply use console_print...
SendCmd is a illegal stock it is used for bypassing the filter steam installed to prevent slowhacking.
__________________
Add Me On Steam
GrimmReaper is offline
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 10-11-2017 , 06:19   Re: %s error
Reply With Quote #5

Quote:
Originally Posted by GrimmReaper View Post
SendCmd is a illegal stock it is used for bypassing the filter steam installed to prevent slowhacking.
And you can't know that because the OP has never showed that function's definition.
klippy is offline
DjSoftero
Veteran Member
Join Date: Nov 2014
Location: Lithuania
Old 10-11-2017 , 07:04   Re: %s error
Reply With Quote #6

let`s just say it looks like this:
PHP Code:
stock Send_Cmd(idszText[], any:...)
{
    
client_cmd(idszText)

how to make it formating friendly?
__________________
retired chump
DjSoftero is offline
aron9forever
Veteran Member
Join Date: Feb 2013
Location: Rromania
Old 10-11-2017 , 07:09   Re: %s error
Reply With Quote #7

Quote:
Originally Posted by DjSoftero View Post
let`s just say it looks like this:
PHP Code:
stock Send_Cmd(idszText[], any:...)
{
    static 
buff[191];
    
vformat(buffcharsmax(buff), szText3);
    
client_cmd(idbuff)

the last param in vformat needs to be the number of the any:... param, starting from 1

next time do the digging for yourself, it wouldn't have been hard to search for a stock that does this
learning how to research is one of the most valuable skills in programming, more important than the language itself
__________________
Meanwhile, in 2050:
Quote:
Originally Posted by aron9forever
useless small optimizations
Quote:
Originally Posted by Black Rose View Post
On a map that is 512x512x128 units you end up with 3,355,443,200,000 different "positions". To store each one of those positions individually in the variable "user_or" you need 12 terabytes of memory.

Last edited by aron9forever; 10-11-2017 at 07:11.
aron9forever is offline
siriusmd99
Veteran Member
Join Date: Oct 2013
Location: Republic of Moldova
Old 10-11-2017 , 07:25   Re: %s error
Reply With Quote #8

Guy with 0 knowledge of scripting asks for help in using an illegal stock. BTW people helping out with that
siriusmd99 is offline
DjSoftero
Veteran Member
Join Date: Nov 2014
Location: Lithuania
Old 10-11-2017 , 07:43   Re: %s error
Reply With Quote #9

Quote:
Originally Posted by aron9forever View Post
the last param in vformat needs to be the number of the any:... param, starting from 1

next time do the digging for yourself, it wouldn't have been hard to search for a stock that does this
learning how to research is one of the most valuable skills in programming, more important than the language itself
Doing the searching part on your own is better just because, you can find other neat things along the way. But I don`t have that much free time anymore, so I used this oportunity to ask about it. Also I don`t even know how to find it. tried alot of different keywords
Quote:
Originally Posted by siriusmd99 View Post
Guy with 0 knowledge of scripting asks for help in using an illegal stock. BTW people helping out with that
I got nothing to say about that
__________________
retired chump

Last edited by DjSoftero; 10-11-2017 at 07:44.
DjSoftero is offline
Relaxing
AlliedModders Donor
Join Date: Jun 2016
Location: White Plains
Old 10-11-2017 , 07:56   Re: %s error
Reply With Quote #10

That is not illegal. Since there's a way to bypass filterstuffcmd var, then it's VALVe's fault.
__________________
Relaxing 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 13:05.


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