Raised This Month: $32 Target: $400
 8% 

[HELP] Rs score error25


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Hectik17
AlliedModders Donor
Join Date: Oct 2005
Old 05-05-2017 , 23:55   [HELP] Rs score error25
Reply With Quote #1

PHP Code:
L 05/06/2017 13:50:29Start of error session.
L 05/06/2017 13:50:29Info (map "de_dust2") (file "addons/amxmodx/logs/error_20170506.log")
L 05/06/2017 13:50:29String formatted incorrectly parameter 4 (total 3)
L 05/06/2017 13:50:29: [AMXXDisplaying debug trace (plugin "resetscore.amxx")
L 05/06/2017 13:50:29: [AMXXRun time error 25parameter error 
L 05
/06/2017 13:50:29: [AMXX]    [0resetscore.sma::ClientCommand_ResetScore (line 48
SMA

PHP Code:
#include < amxmodx >
#include < cstrike >
#include < fun >

#define PLUGIN_NAME        "Reset Score"
#define PLUGIN_VERSION    "1.0"
#define PLUGIN_AUTHOR    "Chilimax"

new const g_szClientCommands[][] =
{
"say /retry""say_team /retry",
"say /resetscore""say_team /resetscore",
"say /restartscore""say_team /restartscore"
}

new 
g_MsgScoreInfo;

public 
plugin_init()
{
register_plugin(PLUGIN_NAMEPLUGIN_VERSIONPLUGIN_AUTHOR);

register_cvar("reset_score_version"PLUGIN_VERSIONFCVAR_SERVER FCVAR_SPONLY);
set_cvar_string("reset_score_version"PLUGIN_VERSION);

new 
IndexiMaxLoops sizeof(g_szClientCommands);
for(
Index 0Index iMaxLoopsIndex++)
    
register_clcmd(g_szClientCommands[Index], "ClientCommand_ResetScore");
    
g_MsgScoreInfo get_user_msgid("ScoreInfo");
}

public 
ClientCommand_ResetScore(Index)
{
    if( !
get_user_frags(Index) && !cs_get_user_deaths(Index) )
    {
        
client_print(Indexprint_chat"Your score is already reset");
        return 
PLUGIN_HANDLED;
    }
    
    
set_user_frags(Index0);
    
cs_set_user_deaths(Index0);
    
    
UpdateClientScore(Index00);
    
    new 
szName[32];
    
get_user_name(IndexszNamecharsmax(szName));
    
    
client_print(0print_chat"%s has just reset his/her score");
    return 
PLUGIN_HANDLED;
}

UpdateClientScore(IndexiFragsiDeaths)
{
message_begin(MSG_ALLg_MsgScoreInfo);
write_byte(Index);
write_short(iFrags);
write_short(iDeaths);
write_short(0);
write_short(get_user_team(Index));
message_end();    

please help, tahnks in advance
Hectik17 is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 05-06-2017 , 00:57   Re: [HELP] Rs score error25
Reply With Quote #2

That error is when you're missing a parameter.

PHP Code:
client_print(0print_chat"%s has just reset his/her score"); 
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
Hectik17
AlliedModders Donor
Join Date: Oct 2005
Old 05-06-2017 , 01:51   Re: [HELP] Rs score error25
Reply With Quote #3

And we're is the parameter. What should I do. I'd remove the chat_prints all together if I could. Or what do I need to add bring?
Hectik17 is offline
Malatya
New Member
Join Date: Oct 2014
Location: Turkey
Old 05-06-2017 , 02:13   Re: [HELP] Rs score error25
Reply With Quote #4

PHP Code:
client_print(0print_chat"%s has just reset his/her score"); 


PHP Code:
client_print(0print_chat"%s has just reset his/her score",szName); 
Malatya is offline
Hectik17
AlliedModders Donor
Join Date: Oct 2005
Old 05-06-2017 , 14:52   Re: [HELP] Rs score error25
Reply With Quote #5

working thanks!
Quote:
Originally Posted by Malatya View Post
PHP Code:
client_print(0print_chat"%s has just reset his/her score"); 


PHP Code:
client_print(0print_chat"%s has just reset his/her score",szName); 
Hectik17 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 22:33.


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