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

Global Offensive Mod 2.15 Beta [LAST UPDATE: 08. 13] *BUG FIXED


Post New Thread Reply   
 
Thread Tools Display Modes
DevilBoy.eXe
Member
Join Date: Mar 2017
Location: Romania
Old 08-06-2017 , 03:44   Re: Global Offensive Mod 2.10 Beta [LAST UPDATE: 08. 04]
Reply With Quote #171

[AMXX] Run time error 4: index out of bounds
[AMXX] [0] 3226a559.sma.p::plugin_init (line 388 )
Something is wrong here
Code:
	for(new i; i < MAXWP; i++)
	{
		copy(SkinData[i][0], 31, SkinDataTrade[i]);
	}
__________________


Last edited by DevilBoy.eXe; 08-06-2017 at 16:04.
DevilBoy.eXe is offline
Send a message via Yahoo to DevilBoy.eXe Send a message via Skype™ to DevilBoy.eXe
shady101
Member
Join Date: Nov 2014
Location: USA
Old 08-06-2017 , 10:29   Re: Global Offensive Mod 2.10 Beta [LAST UPDATE: 08. 04]
Reply With Quote #172

Can someone please help me?

I used to use the csgo_204t_withcolorchat.sma on my server and it worked except some features of the mod crashed my server with no error(sometimes randomly happened when i was trading others), but i lost it so i came back to this thread today and saw that it has been updated. No matter what i do, I can't get the plugin to work. It precaches the models, but that's it. It doesn't actually work with the menu and all in game.
I thought it might be some plugin interfering so i created a new server, and i still got the same result. With both the chat color and the non-chatcolor version of the mod.

----- Currently loaded plugins -----
name version author file status
unknown unknown unknown csgo_210_withco running

By the way, what was the bug with the trade? That it crashed the server?

Last edited by shady101; 08-06-2017 at 10:30.
shady101 is offline
Ayman Khaled
Senior Member
Join Date: Mar 2017
Location: Palestine
Old 08-06-2017 , 12:46   Re: Global Offensive Mod 2.10 Beta [LAST UPDATE: 08. 04]
Reply With Quote #173

1. do you have a mysql database ?
2. did you put your mysql db information in sma ?
3. did you renamed UrbanHazard ( h letter ) to small if logs said it's not found ?
4. did you compiled it locally ? if yes what is your compiler version and server version ?

Trade sometimes crashes the server , it should be rewritten .
__________________

Last edited by Ayman Khaled; 08-06-2017 at 12:47.
Ayman Khaled is offline
shady101
Member
Join Date: Nov 2014
Location: USA
Old 08-07-2017 , 21:46   Re: Global Offensive Mod 2.10 Beta [LAST UPDATE: 08. 04]
Reply With Quote #174

Quote:
Originally Posted by Ayman Khaled View Post
1. do you have a mysql database ?
2. did you put your mysql db information in sma ?
3. did you renamed UrbanHazard ( h letter ) to small if logs said it's not found ?
4. did you compiled it locally ? if yes what is your compiler version and server version ?

Trade sometimes crashes the server , it should be rewritten .
i got help from someone to fix the compilation errors, but now when i try to get skins from cases, i get this in chat:

[CSGOMOD] Shady unboxed a(n) weapon!
[CSGOMOD] Shady unboxed a(n) weapon!
[CSGOMOD] Shady unboxed a(n) weapon!

where it should show the full name of the weapon. And then i check my inventory, and its empty.

Last edited by shady101; 08-08-2017 at 06:31.
shady101 is offline
Ayman Khaled
Senior Member
Join Date: Mar 2017
Location: Palestine
Old 08-08-2017 , 07:25   Re: Global Offensive Mod 2.10 Beta [LAST UPDATE: 08. 04]
Reply With Quote #175

any error logs ..?
__________________
Ayman Khaled is offline
shady101
Member
Join Date: Nov 2014
Location: USA
Old 08-08-2017 , 22:48   Re: Global Offensive Mod 2.10 Beta [LAST UPDATE: 08. 04]
Reply With Quote #176

Quote:
Originally Posted by Ayman Khaled View Post
any error logs ..?
nope. Do you have a correctly working version of this plugin?
shady101 is offline
Ayman Khaled
Senior Member
Join Date: Mar 2017
Location: Palestine
Old 08-09-2017 , 04:53   Re: Global Offensive Mod 2.10 Beta [LAST UPDATE: 08. 04]
Reply With Quote #177

This version ( csgo_210.sma ) should work
but idk about compilation errors , because plugin compiling without any errors/warning
if your compiler version = 1.8.3
redownload .sma file
Delete
PHP Code:
#include <ColorChat> 
and change these lines in HandleSay(id) function

PHP Code:
switch(cs_get_user_team(id))
{
    case 
CS_TEAM_TColorChat(0REDChat);
    case 
CS_TEAM_CTColorChat(0BLUEChat);
    case 
CS_TEAM_SPECTATORColorChat(0GREYChat);



PHP Code:
switch(cs_get_user_team(id))
{
    case 
CS_TEAM_Tclient_print_color(0print_team_redChat);
    case 
CS_TEAM_CTclient_print_color(0print_team_blueChat);
    case 
CS_TEAM_SPECTATORclient_print_color(0print_team_greyChat);

__________________

Last edited by Ayman Khaled; 08-09-2017 at 04:58.
Ayman Khaled is offline
LUMiNEO
Junior Member
Join Date: Aug 2017
Old 08-09-2017 , 05:39   Re: Global Offensive Mod 2.10 Beta [LAST UPDATE: 08. 04]
Reply With Quote #178

Hello I got some error from your plugin. I'm using AMX 1.8.2

Code:
L 08/09/2017 - 11:28:35: [AMXX] Displaying debug trace (plugin "csgo_210.amxx")
L 08/09/2017 - 11:28:35: [AMXX] Run time error 4: index out of bounds
L 08/09/2017 - 11:28:35: [AMXX]    [0] csgo_210.sma::plugin_init (line 388)

Meta list
Quote:
[ 1] AMX Mod X RUN - amxmodx_mm_i386. v1.8.2 ini Start ANY
[ 2] Fun RUN - fun_amxx_i386.so v1.8.2 pl1 ANY ANY
[ 3] Engine RUN - engine_amxx_i386 v1.8.2 pl1 ANY ANY
[ 4] FakeMeta RUN - fakemeta_amxx_i3 v1.8.2 pl1 ANY ANY
[ 5] CStrike RUN - cstrike_amxx_i38 v1.8.2 pl1 ANY ANY
[ 6] CSX RUN - csx_amxx_i386.so v1.8.2 pl1 ANY ANY
[ 7] Ham Sandwich RUN - hamsandwich_amxx v1.8.2 pl1 ANY ANY
[ 8] MySQL RUN - mysql_amxx_i386. v1.8.2 pl1 ANY ANY

Last edited by LUMiNEO; 08-09-2017 at 05:40.
LUMiNEO is offline
shady101
Member
Join Date: Nov 2014
Location: USA
Old 08-09-2017 , 13:02   Re: Global Offensive Mod 2.10 Beta [LAST UPDATE: 08. 04]
Reply With Quote #179

Quote:
Originally Posted by Ayman Khaled View Post
This version ( csgo_210.sma ) should work
but idk about compilation errors , because plugin compiling without any errors/warning
if your compiler version = 1.8.3
redownload .sma file
Delete
PHP Code:
#include <ColorChat> 
and change these lines in HandleSay(id) function

PHP Code:
switch(cs_get_user_team(id))
{
    case 
CS_TEAM_TColorChat(0REDChat);
    case 
CS_TEAM_CTColorChat(0BLUEChat);
    case 
CS_TEAM_SPECTATORColorChat(0GREYChat);



PHP Code:
switch(cs_get_user_team(id))
{
    case 
CS_TEAM_Tclient_print_color(0print_team_redChat);
    case 
CS_TEAM_CTclient_print_color(0print_team_blueChat);
    case 
CS_TEAM_SPECTATORclient_print_color(0print_team_greyChat);

ok i think i found out the problem. I did exactly as you've said, and the sma compiled fine with no problems. Then i uploaded the plugin and it wasnt working, so i checked error logs:


L 08/09/2017 - 12:49:08: Start of error session.
L 08/09/2017 - 12:49:08: Info (map "de_dust2") (file "addons/amxmodx/logs/error_20170809.log")
L 08/09/2017 - 12:49:08: [AMXX] Displaying debug trace (plugin "csgo_210.amxx", version "unknown")
L 08/09/2017 - 12:49:08: [AMXX] Run time error 4: index out of bounds
L 08/09/2017 - 12:49:08: [AMXX] [0] csgo_210.sma::plugin_init (line 388 )

and that part of the code was:

PHP Code:
public plugin_init()
{
    for(new 
iMAXWPi++)
    {
        
copy(SkinData[i][0], 31SkinDataTrade[i]);
    } 
I changed it to:

PHP Code:
    for(new isizeof(SkinData); i++)
    {
        
copy(SkinData[i][0], 31SkinDataTrade[i]);
    } 
The mod was not working at all until i did this. But now the problem is that it doesnt show what skin i get in the chat when i open cases, and when i check my inventory it's empty.



and when i login once in a map, and reconnect, i cannot login again until map changes:



for some reason Activity[id] = 1 even though i left the server, it should be set to 0.

Last edited by shady101; 08-09-2017 at 13:25.
shady101 is offline
DeRoiD
Senior Member
Join Date: Feb 2015
Old 08-10-2017 , 08:38   Re: Global Offensive Mod 2.11 Beta [LAST UPDATE: 08. 10] *BUG FIXED
Reply With Quote #180

sry for being late dudes, i fixed.
__________________
DeRoiD 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:36.


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