• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Shop system check please :)

Acrenactive

★Designer★
Joined
Mar 21, 2013
Messages
224
Reaction score
56
Location
Los Angels L.A
[Error - GlobalEvent Interface]
data/globalevents/scripts/shop.lua:eek:nThink
Description:
data/globalevents/scripts/shop.lua:41: attempt to compare boolean with number
stack traceback:
data/globalevents/scripts/shop.lua:41: in function <data/globalevents/sc
ripts/shop.lua:7>
[Error - GlobalEvents::think] Couldn't execute event: shop



-------------------------------------------------------------------------------------------------


Why this error i have

i use this code in globalevents

http://otland.net/threads/gesior2012-items-shop-installation-administration.170654/
 
tfs version?
after this line (40):
Code:
       local free_cap = getPlayerFreeCap(cid)
put this:
Code:
print('This is a debug:  '..tostring(full_weight)..'__'..tostring(free_cap))
and say me what it prints on console
 
The Forgotten Server, version 0.3.6 (Crying Damson)
Compiled with GNU C++ version 4.4.0 at Aug 15 2013, 14:01:59.
A server developed by Elf, slawkens, Talaturen, KaczooH, Lithium, Kiper, Kornhol
ijo.
Visit our forum for updates, support and resources: http://otland.net.

>> Loading config (config.lua)
> Using SHA1 encryption
>> Loading RSA key

tfs version?
after this line (40):
Code:
       local free_cap = getPlayerFreeCap(cid)
put this:
Code:
print('This is a debug:  '..tostring(full_weight)..'__'..tostring(free_cap))
and say me what it prints on console
The Forgotten Server, version 0.3.6 (Crying Damson)
Compiled with GNU C++ version 4.4.0 at Aug 15 2013, 14:01:59.
A server developed by Elf, slawkens, Talaturen, KaczooH, Lithium, Kiper, Kornhol
ijo.
Visit our forum for updates, support and resources: http://otland.net.

>> Loading config (config.lua)
> Using SHA1 encryption
>> Loading RSA key
 
Last edited by a moderator:
Back
Top