PDA

View Full Version : Where is my error ?



sonata31
April 10th, 2008, 06:13 AM
In my lua script I have :

---------------------------------------------------
function OnPageLoaded()
....
end;

RegisterEvent(Events.PageLoaded, OnPageLoaded);
---------------------------------------------------

I get : attempt to call global 'RegisterEvent' (a nil value)

Rob H
April 10th, 2008, 09:20 AM
That should be NetRemote.RegisterEvent

sonata31
April 10th, 2008, 09:41 AM
That should be NetRemote.RegisterEvent

RegisterEvent in NetRemote Library (in the Help)

Rob H
April 10th, 2008, 01:24 PM
Most things in the NetRemote library need to be prefixed with NetRemote (unless they apply to an object retrieved by a NetRemote.xxx function.

The help is wrong.