Extension won't work on Game Maker 8.1

Posted by Jocke

COMPILATION ERROR in extension package GameMaker Server+
Error in code at line 12:
if(gamemaker_version<=800){var a,i,arg_count;a=0;for(i=0;i<16;i+=1){if(string(argument[i])!="0"){a=i+1;}}arg_count=a;}else{arg_count = argument_count;}
at position 34: Variable name expected.

I keep getting this error can anyone help me?

Replies (3)

Last message on 12 Mar 2019

Size43 (Administrator) on 25 Feb 2019, 13:55:03
You most likely have a resource named 'i' or 'arg_count'. Please rename it to something else.
Jocke (Topicstarter) on 12 Mar 2019, 17:38:32
Wait.. it works! Thanks :D
Jocke (Topicstarter) on 12 Mar 2019, 17:27:47
Can't find either of it. Not sure what to do now..