I am trying to make events like this
registerOutputEvent(GameConnection,Help,"string 200 200");
And at the end where the String is, how would i get the boxes vaule and check it?
I am doing something like this, but it says there is no section for the help
function GameConnection::Help(%cl,%Sect)
{
if($Sect[%Sect] != "")
{
messageClient(%cl,'',"\c2"@$Sect[%Sect]);
}
else
{
messageClient(%cl,'',"\c6Sorry, no section with that.");
}
}
%Sect = "Lol";$Sect[%Sect] = %sect;
I am doing this
onActivate>Client>Help [Lol]
And it says no section.
So, any help?
Edit: I found out solution, the != needed to be !$=
Although, i didn't knew it had to be !$= instead of !=