Forum

> > CS2D > Scripts > Script bug.
Forums overviewCS2D overview Scripts overviewLog in to reply

English Script bug.

2 replies
To the start Previous 1 Next To the start

old Script bug.

made in Poland
User Off Offline

Quote
Hi.
Who can edit this script?
This script have a bug but i dont repair this.
I newbie in script edit.
Yours.

Sorry my english is bad ;/.

LUA ERROR: maps/rp_austor_5.0.lua:7: attempt to call global 'wallet_checkremovemoney' (a nil value)

This bug only occurs when I want to buy items from NPCs on the map.

This is script:
More >
edited 3×, last 16.03.14 03:56:56 pm

Admin/mod comment

Please use the code-tag for scripts! Fixed /DC

old Re: Script bug.

XoOt
Super User Off Offline

Quote
im no scripter but this seems wrong to me

1
2
3
4
5
function aus_pay(id, money)

     return wallet_checkremovemoney(id, money)
--msg2(id, "You've lost "..money.."$")
end

old Re: Script bug.

Dousea
User Off Offline

Quote
The problem is so obvious. You are calling a function that doesn't exists in your script or CS2D calls it nil.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview