Infinity Loop

Dastgir

Core Developer
Messages
3,805
Points
0
Discord
Dastgir#1460
IRC Nickname
Dastgir
Github
dastgirp
Emulator
Client Version
2019-02-28 RE
prontera,141,168,5 shop CustomShop948,501:50 
Code:
-	script	CustomShop	-1,{OnInit:npcshopdelitem "CustomShop",501;for (.i = 22000; .i <= 23030; .i = .i+1){	npcshopadditem "CustomShop",.i,rand(10000000,20000000);}end;}
 Why this have Infinity Loop Error?

 
Last edited by a moderator:
Sometimes I think that if a loop goes on for TOO long it's marked as infinite even if it's really not.

I had that problem a few months back, I had to separate my code into 2 different loops.

 
Sometimes I think that if a loop goes on for TOO long it's marked as infinite even if it's really not.

I had that problem a few months back, I had to separate my code into 2 different loops.
yes thats exactly what it does, if you know you'll loop for long you can use
Code:
freeloop(1);
to disable the infinity loop fail-safe.
 
Back
Top