Run time error 4: index out of bounds
2 Attachment(s)
Hello,
This is problem function: Code:
ncod_setUserStatist(id, NCODSTATIST_HEALTH, 20)Code:
|
Re: Run time error 4: index out of bounds
Its common error happens due passing index into native which the passed index is not in bound
|
Re: Run time error 4: index out of bounds
How to fix?
|
Re: Run time error 4: index out of bounds
Please help me.
|
Re: Run time error 4: index out of bounds
Where is bug? Run time error 4: index out of bounds.
|
Re: Run time error 4: index out of bounds
Code:
Code:
// ncod_getUserStats( id, NCodStatist: iStatist )Code:
gPlayerInfo[ get_param( 1 ) ][ playerInfo: giStatistics[ NCodStatist: get_param( 2 ) ] ] = get_param( 3 );Code:
return gPlayerInfo[ get_param( 1 ) ][ playerInfo: giStatistics[ NCodStatist: get_param( 2 ) ] ]; |
Re: Run time error 4: index out of bounds
Edited to eliminate warnings in 1.8.2:
PHP Code:
|
Re: Run time error 4: index out of bounds
"Tag mismatch":
Code:
else if ( ( iParam1 >= sizeof( gPlayerInfo ) ) || ( iParam2 >= sizeof( giStatistics ) ) || ( giStatistics[ iParam2 ] >= sizeof( gPlayerInfo[] ) ) )Code:
else if ( ( iParam1 >= sizeof( gPlayerInfo ) ) || ( iParam2 >= sizeof( giStatistics ) ) || ( giStatistics[ iParam2 ] >= sizeof( gPlayerInfo[] ) ) ) |
Re: Run time error 4: index out of bounds
Try this
PHP Code:
|
Re: Run time error 4: index out of bounds
Nope, "Tag mistmatch".
|
| All times are GMT -4. The time now is 09:10. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.