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

StorageValue

Nuvemem

;]
Joined
Apr 4, 2009
Messages
220
Reaction score
0
Location
Somewhere...
Hello,

I got problem, i will explain below :

For example I set player StorageValue to 1 by
setPlayerStorageValue(cid,21624, 1)


but what i've to write if i want to delete this storage value from player?
couse when i wrote :
setPlayerStorageValue(cid,21624, 0) or setPlayerStorageValue(cid,21624, -1)


it didn't work at all.

It's not so hard to solve for you,
ofc i will rep+.

Thanks in advance!
 
in game ?
/storage playername,storagenumber,value
??

Code:
if item.uid == 12931 then
        if getPlayerStorageValue(cid,21624) == -1 then
            doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,'Sorry, but you did not absorb enough energy!')
			doTeleportThing(cid, nie)
			doSendMagicEffect(getCreaturePosition(cid),51)
        else 
			doTeleportThing(cid, nie2)
			doSendMagicEffect(getCreaturePosition(cid),51)
                    [COLOR="Red"]    setPlayerStorageValue(cid,21624, -1)[/COLOR]
		end


i want to remove player storage after he is teleported. :D

i mean this in red colour ;]
something is wrong with that couse it doesn't want to work :/

anyway thanks for helpin'
 
Back
Top