i created one menu
1
menu(id,""..player(pl,"name")..","..player(pl,"name").."")
ERROR :
1
LUA ERROR: sys/lua/impos.lua:36: bad argument #1 to 'player' (number expected, got nil)
help pls
sorry inglish
Scripts
error in lua
error in lua
1

menu(id,""..player(pl,"name")..","..player(pl,"name").."")
LUA ERROR: sys/lua/impos.lua:36: bad argument #1 to 'player' (number expected, got nil)
menu(id,""..player(id,"name")..","..player(id,"name").."")
function msg(id)
msg("The ID is:"..pl)
end
function msg(pl)
msg("The ID is:"..pl)
end
function msg(num,id)
msg("The ID is:"..id.." And the number is:"..num)
end
LUA ERROR: sys/lua/impos.lua:52: bad argument #1 to 'player' (number expected, got nil)
addhook("menu","action2")
function action2(id,tittle,button,pl)
menu(id,"USGN,"..player(pl,"name")..","..player(pl,"name")..","..player(pl,"name")..","..player(pl,"name")..","..player(pl,"name")..","..player(pl,"name")..","..player(pl,"name")..","..player(pl,"name").."")
Jhony: pl = id, remove it from the function and replace all pl with id. addhook("menu","action2")
function action2(pl,tittle,button)
1
