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

Run time error 4: index out of bounds


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Snitch
Veteran Member
Join Date: Sep 2013
Location: Kazakhstan
Old 12-25-2014 , 08:54   Run time error 4: index out of bounds
Reply With Quote #1

[AMXX] Run time error 4: index out of bounds
Code:
stock bool:IsUserValid( index )
{
return is_user_connected( index ) && !is_user_bot( index ) && !is_user_hltv( index ) ? true : false;
}
[AMXX] HamPlayerMaxSpeedReset_Post
Code:
public HamPlayerMaxSpeedReset_Post( client )
{
if ( !IsUserValid( client ) || !is_user_alive( client ) || !g_iPlayersData[ client ][ Player_Level ] )
return 1;

new iLevel = g_iPlayersData[ client ][ Player_Level ];

set_user_maxspeed( client, get_user_maxspeed( client ) * g_iLevelsData[ iLevel ][ Level_Speed ] );

return 1;
}
EDIT: nvm, i will check it my self

Last edited by YamiKaitou; 12-27-2014 at 10:59.
Snitch is offline
Send a message via Skype™ to Snitch
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 12-25-2014 , 15:43   Re: Run time error 4: index out of bounds
Reply With Quote #2

Not enough information to assist
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Snitch
Veteran Member
Join Date: Sep 2013
Location: Kazakhstan
Old 12-26-2014 , 02:15   Re: Run time error 4: index out of bounds
Reply With Quote #3

trash

Last edited by Snitch; 02-20-2015 at 15:47.
Snitch is offline
Send a message via Skype™ to Snitch
RateX
Veteran Member
Join Date: Jun 2012
Location: 0o. SEA .o0
Old 12-26-2014 , 11:49   Re: Run time error 4: index out of bounds
Reply With Quote #4

Where's g_iPlayersData and g_iLevelsData definition?
RateX is offline
Snitch
Veteran Member
Join Date: Sep 2013
Location: Kazakhstan
Old 12-26-2014 , 17:45   Re: Run time error 4: index out of bounds
Reply With Quote #5

i have edit my post ^^
Snitch is offline
Send a message via Skype™ to Snitch
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 12-26-2014 , 18:19   Re: Run time error 4: index out of bounds
Reply With Quote #6

And you are still not providing everything. Either attach the entire plugin and provide the complete error or we can't help you.
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou 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 08:38.


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