Raised This Month: $ Target: $400
 0% 

Run time error 4: index out of bounds


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



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 15:24.


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