Author Topic: Events wont register  (Read 625 times)

Below is my code the events don't show up. Nothing in console . Tell me where I forgeted up.
Code: [Select]
// Events
registerOutputEvent(fxDTSBrick, "checkVip");
registerInputEvent(fxDtsBrick,"onVipTrue","Self fxDtsBrick\tPlayer Player\tClient GameConnection\tMinigame Minigame");

fxDTSBrick::checkVip(%client)
{
if(%client.isVip)
{
fxDTSBrick::onVipTrue();
}

}
fxDTSBrick::onVipTrue(%brick)
{
$inputTarget_Self = %brick;
$inputTarget_Player = %client.player;
$inputTarget_Client = %client;
$inputTarget_Minigame = getMinigameFromObject(%client);
%brick.processInputEvent("onVipTrue",%client);
}

11 views no replies. Come on guys

neither of them register?

try packaging them and/or putting the registers below the actual functions

Nothing in console???
Check where the add-on is executed, there are obvious errors in your script.
One thing that popped right out was the lack of "function" before the functions.

Nothing in console???
Check where the add-on is executed, there are obvious errors in your script.
One thing that popped right out was the lack of "function" before the functions.
i knew i saw something wrong

i need to sleep

Nothing in console???
Check where the add-on is executed, there are obvious errors in your script.
One thing that popped right out was the lack of "function" before the functions.
This is why i cant program late at night....
I knew I had made a really big stupid mistake I just couldn't see it