|
On 1 March 2011 23:37, luciano de souza <luchyanus@gmail.com> wrote: > function prandom(l: plua_state):integer; > var > n: integer; > begin > randomize; > n := random(100); > lua_tonumber(l, n); > prandom:=1; > end; > You probably wanted pushnumber; not tonumber. Daurn.