There won't be a player accessible in that scope, use the function they provided above instead. Example:
PHP Code:
function onCreated() {
temp.pl = findplayer("yourAccount");
temp.pl.chat = sendListerRequest("checkinguild", {temp.pl.account, temp.pl.guild});
}
function sendListerRequest(temp.option, temp.params) {
sendtext("lister", temp.option, temp.params);
if (waitfor(this, "ReceiveText", 15)) {
if (params[0] == "lister") {
temp.returndata = params;
temp.returndata.delete(0);
return temp.returndata;
}
return false;
}
return false;
}