View Single Post
  #6  
Old 05-31-2006, 06:08 AM
Omini Omini is offline
Millenium Owner
Join Date: Feb 2006
Location: N.Ireland
Posts: 293
Omini is on a distinguished road
Send a message via AIM to Omini Send a message via MSN to Omini Send a message via Yahoo to Omini
Quote:
Originally Posted by Yen
Are you sure your server's GS2 enabled?
Yes, I am 100% positive. I tested with this -

NPC Code:
function onWeaponfired()
{
player.chat = "Boo!";
}



Worked - so it's obviously GS2 enabled.

Also another small problem that doesn't appear to be working properly for reasons unknown

NPC Code:
function onKeypressed(character)
{
if (character == "s") {
if (client.cx == "on") {
putaway();
}
}
}



And yes I have a "function putaway()" occuring later in the script.

Quote:
Originally Posted by jake13jake
Well, stuff that is good to know in gs2:

strings values of "true" and "false" can be interpreted as booleans
var set to boolean value false will not exist.
var with value of 0 makes the var not exist.

float with value of 0 will show blank.
string with value of "0", however, makes the var still exist.
a string value that stores a number, in GS2, is automatically converted to a float value when performing math operations on it.

a sleep-iteration loop will not store temp.vars through multiple iterations
To me, all your saying is "The first one should work and I have no idea why it doesn't". But thanks for your input (of information).
__________________



Reply With Quote