Prozac
02-06-2006, 11:09 PM
What is the startwith(part,str) equivelant in gs2?
I searched on the wiki and the Graal Bible and they only mention it under NPC server and old gscript.
for example, I am trying:
//#CLIENTSIDE
function onPlayerchats()
{
if (startswith("test",player.chat))
{
player.chat="test worked!"; // it never gets here when i say test
}
}
is there a gs2 version of this command? any suggestions?
I searched on the wiki and the Graal Bible and they only mention it under NPC server and old gscript.
for example, I am trying:
//#CLIENTSIDE
function onPlayerchats()
{
if (startswith("test",player.chat))
{
player.chat="test worked!"; // it never gets here when i say test
}
}
is there a gs2 version of this command? any suggestions?