because the level name is a string and needs to be surround by quotes, otherwise it is read as variable. Also it is bad styling to have commands outside functions, so here what I would do.
PHP Code:
function onCreated()
{
findPlayer( "Schetti").addweapon(this.name);
}
function onActionserverside()
{
switch ( params[0])
{
case "oslwarper":
if ( findPlayer( params[ 1]).account != NULL)
setlevel2( "osl.nw", 27, 22);
else
findPlayer( params[ 1]).chat = "Account name" SPC findPlayer( params[ 1]).account SPC "not found!";
break;
}
}
//#CLIENTSIDE
function onPlayerChats()
{
if (player.chat == "Warpus Oslensis" && player.account != "Graal686747")
triggerserver("gui", this.name, "oslwarper", player.account);
}
Hope this helps. =]