| Off Topic > Games |
| Lua Error (CS2D) |
| (1/1) |
| brickybob:
--- Code: ---function rpmenu(player, text) if(text == "!buyhealth")then if(player(player, money) > 10)then msg("MIRACLES!") end end end --- End code --- 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 --- Code: ---LUA ERROR: sys/lua/zrpg.lua:5: attempt to call local 'player' (a number value) --- End code --- |
| Dropshock:
Does CS2D have a forum you can post this in? They'll probably be more help than us. |
| brickybob:
--- Quote from: Dropshock on March 06, 2011, 09:22:37 PM ---Does CS2D have a forum you can post this in? They'll probably be more help than us. --- End quote --- I was hoping not to take 2 minutes to make an account. But I'll post there too. Edit: Bam. |
| Coolio:
I play, but I can`t script. |
| Navigation |
| Message Index |