Jump to content
Sign in to follow this  
jawed

Error parsing function call in 2d array...

Recommended Posts

jawed

Hi, im pretty new here and in autoit too :)

trying to learn somehow and so i started my first project, but im getting more and more errors ^^

i was viable to solve most of them by myself (searching the internet for answers if i can call that by myself :P), but This sort of error is killing me.

$Spielfeld[ i ][ j ] = 0

$Spielfeld[  ^ERROR

Error: Error parsing function call.

the code:

 

For $i = 8 to 0 step -1
   For $j = 0 to 9
         $Spielfeld[ i ][ j ] = 0
   next
next

 

not that much....

the idea behind this is that i have a field that i want to clear  in the beginning of my code

hope you guys can help me :)

greeting jawed

Share this post


Link to post
Share on other sites
mrflibblehat

Hi, im pretty new here and in autoit too :)

trying to learn somehow and so i started my first project, but im getting more and more errors ^^

i was viable to solve most of them by myself (searching the internet for answers if i can call that by myself :P), but This sort of error is killing me.

$Spielfeld[ i ][ j ] = 0

$Spielfeld[  ^ERROR

Error: Error parsing function call.

the code:

 

For $i = 8 to 0 step -1

   For $j = 0 to 9

         $Spielfeld[ i ][ j ] = 0

   next

next

 

not that much....

the idea behind this is that i have a field that i want to clear  in the beginning of my code

hope you guys can help me :)

greeting jawed

Local $Spielfeld[9][10]

For $i = 8 to 0 step -1
   For $j = 0 to 9
         $Spielfeld[$i][$j] = 0
   Next
Next 

[font="'courier new', courier, monospace;"]Pastebin UDF | Prowl UDF[/font]

Share this post


Link to post
Share on other sites
jawed
Local $Spielfeld[9][10]

For $i = 8 to 0 step -1
   For $j = 0 to 9
         $Spielfeld[$i][$j] = 0
   Next
Next 

god... i am an idiot.. -.- that $ grrr...

thanks a lot!

(at the beginning i declared it as global :) )

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×