So I'm not in any way experienced with arrays, and I was wondering if what I am attempting is even possible, and if not what would be a solution.
Current:
$Array::Check = true;
function gameConnection::autoAdminCheck(%client)
{
if(%client.BL_ID == $Array::Check[%client.BL_ID])
{
messageClient(%client,'',"Work");
}
parent::autoAdminCheck(%client);
}
function gameConnection::onClientLeaveGame(%client)
{
$Array::Check[%client.BL_ID] = true;
parent::onClientLeaveGame(%client);
}
It's supposed to when a person leaves set the variable ending to the clients BLID and then when they join check if it is there, and say Work if the variable does have the clients ending and if it doesn't it won't do anything.
I'm trying to do this to get around saving it to a txt document
^SOLVED^
I have a question, but didn't want to make a new topic so I decided to just throw it in this one.
I need help with a servercmd that includes all the rest of the input
Like
servercmdTalk(%client, %input)
And I type /talk hey there
Right now it will set %input as "hey"
I want it to be "hey there"
How would I go about doing this without including 100 arguments in the function?