Forum

> > CS2D > Scripts > Script bug.
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Script bug.

2 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Script bug.

made in Poland
User Off Offline

Zitieren
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:
Mehr >
3× editiert, zuletzt 16.03.14 15:56:56

Admin/Mod Kommentar

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

alt Re: Script bug.

XoOt
Super User Off Offline

Zitieren
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

alt Re: Script bug.

Dousea
User Off Offline

Zitieren
The problem is so obvious. You are calling a function that doesn't exists in your script or CS2D calls it nil.
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht