I need little help for this roleplay script!
I make this script,BUT not finished,I need to solved this problem..
1
LUA ERROR: sys/lua/autorun/rp_austor_5.1.lua:7: attempt to call global 'wallet_removerp_money' (a nil value)
and this is one..
1
2
3
4
5
2
3
4
5
function aus_pay(id, rp_money) 	return wallet_removerp_money(id, rp_money) --msg2(id, "You've lost "..rp_money.."$") end
To buy this Hotel..
1
2
3
4
5
6
7
8
9
10
11
2
3
4
5
6
7
8
9
10
11
function aus_hotelmact(id,t,b) 	if(t == "Hotel - Central" and aus_pay(id, 300) == true) then 		parse("setpos "..id.." "..((hotel1_info[b][1]*32)+16).." "..((hotel1_info[b][2]*32)+16)) 		parse("triggerposition 19 12") 	elseif(t == "Hotel - Township" and aus_pay(id, 200) == true) then 		parse("setpos "..id.." "..((hotel2_info[b][1]*32)+16).." "..((hotel2_info[b][2]*32)+16)) 		parse("triggerposition 377 139") 	end end
Thanks for helping..