(2020-10-26, 10:47 AM)Expert* Wrote:I know but in his code it's impossible to go over 100 anyways... It's < MAX_GIFTS....(2020-10-26, 10:30 AM)Pinch Wrote:(2020-10-26, 10:06 AM)Expert* Wrote:Uhm, it obviously isn't a problem because their database's ending is 50 and their loop was already limiting it to MAX_GIFT :DPHP Code:for(new i = 0; i < rows && i < MAX_GIFT; i)
or
PHP Code:for(new i = 0; i < rows; i)
{
? ? if( i ==?MAX_GIFT ) break;
? ? // ...
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...
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.
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.