I'm making an event that has to do with variables.
Please tell me what I did wrong:
registerOutputEvent(GameConnection,"addAVariable","string 50 50",1);
%Variable = 0;
function GameConnection::addAVariable(%client,%amount) {
%Variable+%amount;
messageClient(%client,'',"\c6You just got \c2"@%amount@"\c6 Variable.");
}