function rpmenu(player, text)
if(text == "!buyhealth")then
if(player(player, money) > 10)then
msg("MIRACLES!")
end
end
end
I'm trying to make a script for CS2D to make it so when I type "!buyhealth", it'll check if I have enough money and write MIRACLES! on the screen. (The miracles part is a place holder.)
Help please?
Edit: The error is
LUA ERROR: sys/lua/zrpg.lua:5: attempt to call local 'player' (a number value)