View Single Post
  #3  
Old 09-02-2002, 12:40 PM
G_yoshi G_yoshi is offline
Forbidden
G_yoshi's Avatar
Join Date: Mar 2001
Posts: 7,206
G_yoshi will become famous soon enough
Send a message via AIM to G_yoshi
Quote:
Originally posted by Falcor
perhaps its because the image hasn't loaded into the memory yet? Thus makeing your wraptext size a negitive number and making a near infinite (or negitive, just as bad) number of tokens. I would make it more defined.

like
NPC Code:

this.width = (imgwidth(dk_window.png)-16 > 0? imgwidth(dk_window.png)-16 : 128);
wraptext2 this.width,1,,@Trebuchet MS@Use the Arrow Keys...etc;



Or maybe just put in the acual width of dk_window.png, since its never gunna change anyway. (I would recommend this option over the previous)
I think I'll do the later...I should know better than to use imgwidth/imgheight since I have to load the image first. Thanks
__________________
Reply With Quote