P
Piyo
Guest
I'm curious as to why the game does not run when I add this code?
I'm fairly certain that it's because of this part: if (xp > (i*10)) {i+=1}
If the syntax is incorrect, then why does GM not notify/pop up an error ?
The reason I know this is because my game ran successfully after deleting the loop. (It didn't run at all before ;w; )
I'm fairly certain that it's because of this part: if (xp > (i*10)) {i+=1}
Code:
for (i=1; i<5; if (xp > (i*10)) {i+=1})
{
if (xp > (i*10))
{
lv = i;
maxxp = (i*10);
xp = 0;
}
};
The reason I know this is because my game ran successfully after deleting the loop. (It didn't run at all before ;w; )