• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] Error 4: Index Out Of Bound
#6
(2020-10-26, 10:47 AM)Expert* Wrote:
(2020-10-26, 10:30 AM)Pinch Wrote:
(2020-10-26, 10:06 AM)Expert* Wrote:
PHP Code:
for(new 0rows && MAX_GIFTi

or

PHP Code:
for(new 0rowsi)
{
? ? if( 
==?MAX_GIFT ) break;
? ? 
// ... 
Uhm, it obviously isn't a problem because their database's ending is 50 and their loop was already limiting it to MAX_GIFT :D
But yeah, if( i ==?MAX_GIFT ) break; is fine

It's something else, probably related to g_gift

Just in case. He doesn't look like someone who knows what he is doing...
I know but in his code it's impossible to go over 100 anyways... It's < MAX_GIFTS....
Using Pawn.CMD?

If you're doing so, this is the very first sign that you absolutely shouldn't utilize your all powerful P-Code knowledge in any of the scripting discussion topics.
  Reply


Messages In This Thread
Error 4: Index Out Of Bound - by Jonies - 2020-10-25, 12:56 PM
RE: Error 4: Index Out Of Bound - by Pinch - 2020-10-25, 02:16 PM
RE: Error 4: Index Out Of Bound - by Expert* - 2020-10-26, 10:06 AM
RE: Error 4: Index Out Of Bound - by Pinch - 2020-10-26, 10:30 AM
RE: Error 4: Index Out Of Bound - by Expert* - 2020-10-26, 10:47 AM
RE: Error 4: Index Out Of Bound - by Pinch - 2020-10-26, 11:02 AM
RE: Error 4: Index Out Of Bound - by Expert* - 2020-10-30, 07:49 PM
RE: Error 4: Index Out Of Bound - by Jonies - 2020-10-27, 06:42 AM
RE: Error 4: Index Out Of Bound - by Expert* - 2020-10-30, 07:53 PM
RE: Error 4: Index Out Of Bound - by Pinch - 2020-10-30, 08:34 PM

Forum Jump: