C Prototype is: lua_error (lua_State *L, const char *s)

so:[pascal]lua_error(L, 'My Error Message');[/pascal]