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

uq_jumpstats v2.42


Post New Thread Reply   
 
Thread Tools Display Modes
Gasa
Senior Member
Join Date: Sep 2013
Old 11-11-2013 , 20:55   Re: uq_jumpstats v2.42
Reply With Quote #521

Usless to complain, because nobody wont or dont know to fix
Gasa is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 11-12-2013 , 01:58   Re: uq_jumpstats v2.42
Reply With Quote #522

Unapproved for now since it seems to throw errors and author seems to be inactive.
PM me if you fix errors.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
wAyz
Senior Member
Join Date: Feb 2010
Location: Germany
Old 11-13-2013 , 06:08   Re: uq_jumpstats v2.42
Reply With Quote #523

Code:
L 06/27/2013 - 14:49:16: [AMXX] Displaying debug trace (plugin "uq_jumpstats.amxx")
L 06/27/2013 - 14:49:16: [AMXX] Run time error 4: index out of bounds 
L 06/27/2013 - 14:49:16: [AMXX] [0] colorchat.inc::ColorChat (line 74)
L 06/27/2013 - 14:49:16: [AMXX] [1] uq_jumpstats.sma::Color_Chat_Lang (line 8166)
L 06/27/2013 - 14:49:16: [AMXX] [2] uq_jumpstats.sma::Color_Chat_Lang (line 8164)
L 06/27/2013 - 14:49:16: [AMXX] [3] uq_jumpstats.sma::ResetHUD (line 8754)
I've managed to fix those errors listed above with a little edit in colorchat.inc:


Code:
/* Fun functions
*
* by Numb
*
* This file is provided as is (no warranties).
*/


enum Color
{
        NORMAL = 1, // clients scr_concolor cvar color
        GREEN, // Green Color
        TEAM_COLOR, // Red, grey, blue
        GREY, // grey
        RED, // Red
        BLUE, // Blue
}

new TeamName[][] = 
{
        "",
        "TERRORIST",
        "CT",
        "SPECTATOR"
}

ColorChat(id, Color:type, const msg[], {Float,Sql,Result,_}:...)
{
        static message[256];

        switch(type)
        {
                case NORMAL: // clients scr_concolor cvar color
                {
                        message[0] = 0x01;
                }
                case GREEN: // Green
                {
                        message[0] = 0x04;
                }
                default: // White, Red, Blue
                {
                        message[0] = 0x03;
                }
        }

        vformat(message[1], 251, msg, 4);

        // Make sure message is not longer than 192 character. Will crash the server.
        message[192] = '^0';

        static team, ColorChange, index, MSG_Type;
        
        if(id)
        {
                MSG_Type = MSG_ONE;
                index = id;
        } else {
                index = FindPlayer();
                MSG_Type = MSG_ALL;
        }
        
        team = get_user_team(index);
        
        if( team >= 0 && team < 4 )
        {
           ColorChange = ColorSelection(index, MSG_Type, type);

           ShowColorMessage(index, MSG_Type, message);
                
           if(ColorChange)
           {
                Team_Info(index, MSG_Type, TeamName[team]);
           }
        }
}

ShowColorMessage(id, type, message[])
{
        message_begin(type, get_user_msgid("SayText"), _, id);
        write_byte(id)                
        write_string(message);
        message_end();        
}

Team_Info(id, type, team[])
{
        message_begin(type, get_user_msgid("TeamInfo"), _, id);
        write_byte(id);
        write_string(team);
        message_end();

        return 1;
}

ColorSelection(index, type, Color:Type)
{
        switch(Type)
        {
                case RED:
                {
                        return Team_Info(index, type, TeamName[1]);
                }
                case BLUE:
                {
                        return Team_Info(index, type, TeamName[2]);
                }
                case GREY:
                {
                        return Team_Info(index, type, TeamName[0]);
                }
        }

        return 0;
}

FindPlayer()
{
        static i;
        i = -1;

        while(i <= get_maxplayers())
        {
                if(is_user_connected(++i))
                {
                        return i;
                }
        }

        return -1;
}

Anyways, if the author might come active again: There's still a random 'No stats bug' which
appears once in a while (mostly while jumping on block). Hope someone is able to fix that random bug.

Last edited by wAyz; 11-13-2013 at 06:33.
wAyz is offline
Commy
Junior Member
Join Date: Apr 2013
Old 11-14-2013 , 05:24   Re: uq_jumpstats v2.42
Reply With Quote #524

This plugin is still used on so many servers because it's simply the best one at least when it comes to 100 airaccelerate. It features the most techniques and it has great customization, would be great if someone was able to fix the bugs that have been reported along the way.
Commy is offline
wAyz
Senior Member
Join Date: Feb 2010
Location: Germany
Old 11-15-2013 , 20:44   Re: uq_jumpstats v2.42
Reply With Quote #525

Another little Bugfix:

l. 6256:
Code:
show_hudmessage(i, "%L",LANG_SERVER,"UQSTATS_DUCKPRE",speed[id]);
l. 6316:
Code:
show_hudmessage(i, "%L",LANG_SERVER,"UQSTATS_DUCKPRE",speed[id]);
l. 6672:
Code:
if(edgedist[id]!=0.0 && (showjofon[i] || jofon[id]))

This will display duckpre & jumpoff also in Spectator mode.

Last edited by wAyz; 11-15-2013 at 20:51.
wAyz is offline
Xunfop
Member
Join Date: Mar 2012
Location: 97Club
Old 11-16-2013 , 17:05   Re: uq_jumpstats v2.42
Reply With Quote #526

if you use amxx 1.8.3 185+ build
change ColorChat to use client_print_color can fix "Run time error 4: index out of bounds" problem
Xunfop is offline
Dende
Member
Join Date: Oct 2013
Old 01-01-2014 , 14:09   Problems with uq_jumpstats v2.42
Reply With Quote #527

I have problems with uq_jumpstats v2.42, when activate stats with noslowdown it allways shows FAILED.

// On/Off Showing stats with noslowdown
kz_uq_noslowdown 1

What I need to do, that stats show normally, not failed, with noslowdown.

Sorry for my English.

Thanks.
Dende is offline
UchihaSkills
Senior Member
Join Date: May 2013
Location: Germany
Old 01-02-2014 , 01:11   Re: Problems with uq_jumpstats v2.42
Reply With Quote #528

You have to change it in the config file not sma
UchihaSkills is offline
Dende
Member
Join Date: Oct 2013
Old 01-02-2014 , 02:46   Re: Problems with uq_jumpstats v2.42
Reply With Quote #529

And what I should change? I've already made kz_uq_noslowdown 1
Could you give me cfg file, or say where's problem.
Thanks.
Dende is offline
Fr33m@n
Veteran Member
Join Date: May 2008
Location: France Marne
Old 01-03-2014 , 12:09   Re: uq_jumpstats v2.43
Reply With Quote #530

I have done some changes to theses plugins for my server.

NOTE : THIS VERSION ONLY WORK WITH AMXMODX 1.8.3 DEV BUILD 185 AND HIGHER


Theses changes include :
- include small bugfixes mentionned by wAyz
- usage of new amxmodx core native client_print_color
- Removal of all the outdated color stuff. No more Color_Chat_Lang and things linked to that. colorchat.inc is no longer needed. updated a bit uq_jumpstats includes.
- in consequence modification and compliance of file addons/amxmodx/data/lang/uq_jumpstats.txt to support new official amxmodx style.

This should fix all the errors log linked to colorchat.
Attached Files
File Type: zip uq_jumpstats_2.43.zip (928.2 KB, 592 views)

Last edited by Fr33m@n; 01-03-2014 at 12:10.
Fr33m@n 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 00:44.


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