WoW BlueTracker Home | RSS | News | Contact
Recent | Search | Archive | CS Posts
Poster: Syllani at 6/6/2005 1:44:19 PM PDT
Subject: Slouken: Bug in lua string.byte function?
   Try it:

/script message(string.byte("abc123",1));

then

/script message(string.byte("abc123",4));

They return the same value. I don't think they should, since from reading lua sites I believe string.byte should return the ASCII numeric value of the character in the first string parameter ("abc123") with the position of the second numeric parameter (1 or 4).

Both the examples given above return 97, the ASCII value for "a".

[ post edited by Syllani ]

  http://forums.worldofwarcraft.com/thread.aspx?fn=wow-interface-customization&t=151668&p=#post151668
 
Poster: slouken at 6/6/2005 10:37:12 PM PDT
Subject: Re: Slouken: Bug in lua string.byte function?
   Works for me, the first call returned 97 and the second returned 49. Make sure that you're clicking 'okay' on the message box button between /script calls, otherwise you won't see any change in the message.
  http://forums.worldofwarcraft.com/thread.aspx?fn=wow-interface-customization&t=151668&p=#post151943

View all recent official Blue Posts

WoW Blue Tracker: Archiving World of Warcraft Blue Posts
since March 2005
Home | RSS | News | Contact
Recent | Search | Archive | CS Posts
 

Why Ads?