View Single Post
  #1  
Old 02-25-2010, 09:15 PM
coreys coreys is offline
N-Pulse Assistant Manager
coreys's Avatar
Join Date: Mar 2005
Posts: 2,180
coreys has a spectacular aura about
Send a message via AIM to coreys Send a message via MSN to coreys Send a message via Yahoo to coreys
textwidth madness

I'm having some very strange issues with the textwidth function. If I try and input a variable into the function like this:
PHP Code:
foo "some text here";
len textwidth(1"Verdana""b"foo); 
it will always output the same value no matter what the text is in the variable (in my case, 74).

However, if I use a string literal, like this:
PHP Code:
len textwidth(1"Verdana""b""some text here"); 
It will work properly.

Anybody know what I'm doing wrong here? I've checked the variables value over and over, it's nothing to do with that, I don't think.
__________________

Quote:
*SlikRick: so should I even ask about your aim status?
*Xor: well if you want to
*Xor: but i am LARPING
*SlikRick: While on a computer?
*Xor: yes
*Xor: in my living room
*SlikRick: ahh
*Xor: i have a fort setup to hide from beasts
Reply With Quote