HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Invalid number of arguments

07-09-2006, 01:26 AM#1
aquilla
Well, I was playing around with an imported Blizzard.j and everything was working fine till all of a sudden I got thousands of Invalid number of arguments-errors. It seems pre-praced objects have had their decimals written with comma instead of a dot (see below) and thus causing it to consider it another parameter instead.
Collapse JASS:
    call CreateItem( 'I00G', 930,1, -2655,5 )
    call CreateItem( 'I00M', 1038,0, -2748,8 )
    call CreateItem( 'I00Q', 1147,5, -2839,9 )
    call CreateItem( 'I00Q', 1114,1, -2852,1 )
    call CreateItem( 'I00Q', 942,9, -2845,8 )
    call CreateItem( 'hslv', 999,5, -3172,4 )
etc..
What I'm trying to figure out now is a good way to fix it, I really don't feel like going through hundreds of lines :P And ofcourse, find what caused it so I can make sure it doesn't happen again. Any ideas?
07-09-2006, 01:30 AM#2
PipeDream
No %!#!%ing way.
<Yes, I checked>
Or maybe I'm misunderstanding where the problem is.
07-09-2006, 03:52 AM#3
Vexorian
That is not supposed to happen. Maybe it is a problem with regional configuration, still senseless, if the problem persists try removing one preplaced item and place it again or something until the thing stops bugging like that
07-09-2006, 03:54 AM#4
Daxtreme
It happens to me often. Just close World Editor and reopen it again and try to save. The errors should not reappear.
07-09-2006, 01:11 PM#5
aquilla
I tried replacing preplaced objects, I did not try restarting WE which did work (silly me) Thanks, Daxtreme
07-09-2006, 01:19 PM#6
iNfraNe
it also happens with sounds alot of times, its a weird bug in the editor.