
12-25-2006, 08:51 PM
|
|
team canada
|
 |
Join Date: Jul 2004
Location: Canada
Posts: 5,200
|
|
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");
}
|
|
|
|