Results 1 to 2 of 2

Thread: Need some help compiling wont compile..

  1. #1
    Join Date
    Nov 2011
    Posts
    88
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Need some help compiling wont compile..

    If FindObjCustom(seX, seY, ['Chop', 'down', 'p' d'], [2700605, 1779752], 10)]

    Can anyone fix this line?

    Heres debug box.

    [Error] (66:51): Closing square bracket (']') expected at line 65
    Compiling failed.
    [Error] (66:51): Closing square bracket (']') expected at line 65
    Compiling failed.
    [Error] (66:19): Invalid number of parameters at line 65
    Compiling failed.
    [Error] (66:51): Closing square bracket (']') expected at line 65
    Compiling failed.


    Where do You need the ]??

  2. #2
    Join Date
    Sep 2010
    Location
    Finland
    Posts
    299
    Mentioned
    8 Post(s)
    Quoted
    37 Post(s)

    Default

    Quote Originally Posted by Fog856 View Post
    If FindObjCustom(seX, seY, ['Chop', 'down', 'p' d'], [2700605, 1779752], 10)]

    Can anyone fix this line?

    Heres debug box.

    [Error] (66:51): Closing square bracket (']') expected at line 65
    Compiling failed.
    [Error] (66:51): Closing square bracket (']') expected at line 65
    Compiling failed.
    [Error] (66:19): Invalid number of parameters at line 65
    Compiling failed.
    [Error] (66:51): Closing square bracket (']') expected at line 65
    Compiling failed.


    Where do You need the ]??
    Simba Code:
    If FindObjCustom(seX, seY, ['Chop', 'down', 'p' d'], [2700605, 1779752], 10)]

    Here is the fixed line(bottom one). It says that it's missing a square bracket because you forgot a ' from the d. Also you forgot a comma after 'p'.

    Just compare these (upper is yours and bottom is fixed one) and you'll find where the problem was.
    Simba Code:
    if FindObjCustom(seX, seY, ['Chop', 'down', 'p', 'd'], [2700605, 1779752], 10) then
    Rusting away

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •