View Single Post
  #1  
Old 12-17-2005, 04:35 AM
Lance Lance is offline
dark overlord
Lance's Avatar
Join Date: Sep 2003
Location: Space Jam Mountain
Posts: 5,072
Lance is on a distinguished road
Exclamation serverside keyname() problem

#k(float) seems to be working fine serverside in this class (after it adds a kart to the player, it tells them which keys they should press to accelerate/brake):

NPC Code:
  say2("
You now control a kart!

Press #k(5) to accelerate

and #k(4) to brake");



works. It properly displays which keys are set (traditionally) to S and D.

However, when I try to convert it to use keyname(float):

NPC Code:
  say2("
You now control a kart!

Press" SPC keyname(5) SPC "to accelerate

and" SPC keyname(4) SPC "to brake");
}



it returns 0 now and causes this error:

Quote:
GraalScript: Function keyname not found at line 15 of karthouses in script of npcs[302] (in level worldr-08.nw at pos (41, 52))
Any suggestions? Is there something I'm missing?
Reply With Quote