Author Topic: Event Arguements  (Read 438 times)

I am trying to make events like this
Code: (Event) [Select]
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
Code: (Function) [Select]
function GameConnection::Help(%cl,%Sect)
{
 if($Sect[%Sect] != "")
 {
  messageClient(%cl,'',"\c2"@$Sect[%Sect]);
 }
 else
 {
  messageClient(%cl,'',"\c6Sorry, no section with that.");
 }
}
Code: (Section) [Select]
%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 !=
« Last Edit: January 27, 2010, 04:03:57 PM by Pah1023 »

Don't you need the event name in quotes on the registerOutputEvent line?