20.08.2012, 11:19
Quote:
I want to get an example with addEventHandler, because i got error: Bad argument @ addEventHandler
|
addEventHandler(name, rootID, function)
rootID = Event called for who, -1 is for all
addEventHandler('onPlayerConnect', -1, function) -- all players
addEventHandler('onPlayerConnect',0,function) -- for id 0 only
rootID usually first parameter in the publics.