Thread: detect number
View Single Post
  #6  
Old 12-25-2006, 08:51 PM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
Why not just use type..
Quote:
Wiki:
You can check the current type with the type()-function - obj.type() returns 0,1,2,3 for numeric, string, object or array.
NPC Code:

function onCreated()
{
var = 333;
if (var.type() == 0)
echo(var @ " is a number. GG LOL");
}

__________________
Quote:
Reply With Quote