View Single Post
  #18  
Old 12-05-2002, 03:23 AM
Com013 Com013 is offline
Registered User
Join Date: Aug 2002
Location: GMT+1
Posts: 381
Com013 is on a distinguished road
Quote:
Originally posted by Kaimetsu
Personally I just wouldn't use a string array, though it depends on how many of each hat you want to allow people to have. If you use ascii() and #K() then you can compact numbers over a fairly large range into a single byte, and then just use a normal string with one character per hat.
Sounds good. But lazy as I am, I'd like Stefan to fix the deletestring command.

Quote:
Originally posted by Stefan
Variables like hatnum are local, belonging to the current script, so you can use hatnum like you have written, and it works. You have problems when calling functions of joined classes, because those don't know of the local variables of the other script.
Yes, the classes I made are only accessing this.variables when they need data from the main script.
But here I am not calling a joined function. Here it looks like deletestring is always deleting number zero, no matter what I command it to delete.

I will test what happens when I enter a constant number to deletestring. Maybe it is just bugged when using variables. Though I doubt it.
__________________
Com013
Former Admin of the LAT on Graal The Adventure

e-mail: [email protected]
Reply With Quote