• 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!

Are these two functions used right?

sestorme

Member
Joined
Dec 9, 2011
Messages
272
Reaction score
6
Location
Birmingham, UK
doSetStorage(600, (getStorage(600)) - 25)
selfSay('Thank you so much, only "..(getStorage(600)).." left.', cid)

Will first one work fine? I mean, will it subtract 25 from current storage 600 quantity?
And how can I implement storage value into text? This above didn't work.

Thanks +rep
 
Are you trying to set global or player storage?
for player storage use
LUA:
doPlayerGetStorageValue
for global storage use
LUA:
getGlobalStorageValue(valueid)
 
Last edited:
If you use 'string' then you have to use it in the whole line.

e.g.
LUA:
selfSay('Thank you so much, only '..getGlobalStorageValue(600)..' left.', cid)
or
LUA:
selfSay("Thank you so much, only "..getGlobalStorageValue(600).."left.", cid)
You cannot mix ' and "
As far as I know...
 
Back
Top