Hello Guest, please login or register.
Did you miss your activation email?
Login with username, password and session length.

Pages: [1]   Go Down

Author Topic: dailog box error?  (Read 1090 times)

0 Members and 1 Guest are viewing this topic.

Zhello

N.A.D.I.
dailog box error?
« on: March 31, 2009, 06:08:34 pm »
  • L'homme avec beaucoup de noms.
  • *
  • Reputation: +6/-1
  • Offline Offline
  • Gender: Male
  • Posts: 925
I dunno how to resolve this, someone help pls
___________________________________________
COMPILATION ERROR in Script: dialog_box
Error in code at line 58:
     draw_sprite_ext(sprTextBox, 0, view_x[0]+12, view_y[0] + 134,1,1,.75) //draw the text box

at position 72: Wrong number of arguments to function or script.
Logged
The IT Guy
Intermediate Coder
Linux is a wonderful thing
~Linkwolf48/Gumstone1080~

The Legend of Zelda - New Beginnings

http://zfgc.com/forum/index.php?topic=34986.0
1.6 Demo -
https://www.dropbox.com/s/56km0iadaras56g/LoZNB%20Game%20Folder.rar?dl=0


Side Projects:

Dragon Diary - Cybernetic Threat
Story: http://wiki.zfgc.com/Cybernetic_Threat

Quote
Aero88
ZFGC is like the Hotel California.  You can come in but you can never leave!

devianart: http://linkwolf48.deviantart.com/
Re: dailog box error?
« Reply #1 on: March 31, 2009, 06:59:26 pm »
  • *
  • Reputation: +8/-0
  • Offline Offline
  • Gender: Male
  • Posts: 6604
I sincerely doubt that this is a real issue for you. Clearly, from the help manual provided with Game Maker 7.0, the function draw_sprite_ext looks like this:

draw_sprite_ext(sprite,subimg,x,y,xscale,yscale,rot,color,alpha)

There are nine arguments.

Your use of the function:

draw_sprite_ext(sprTextBox, 0, view_x[0]+12, view_y[0] + 134,1,1,.75)

only has seven arguments.


"at position 72: Wrong number of arguments to function or script." in the error message told you that. Seriously. If you are using code from an earlier version of Game Maker with a newer version there is a chance that it might not be compatible and that the same function in both versions may have changed someway. However, as the error message stated, you should be able to read information from it to understand what the problem is.
Logged
Pages: [1]   Go Up

 


Contact Us | Legal | Advertise Here
2013 © ZFGC, All Rights Reserved



Page created in 0.253 seconds with 38 queries.