conde2
Active Member
- Joined
- Jun 22, 2008
- Messages
- 348
- Reaction score
- 44
In my server i'm trying save the CID of one npc in a STORAGE !!
So i do this way:
But when i see the storage in database is equal of npc
So the thing is why when i use getPlayerStorageValue the return is not equal of the database value?
So i do this way:
PHP:
local npc = doCreateNpc("erdon", getCreaturePosition(cid))
doPlayerSetStorageValue(cid, 9000, npc)
local storage = getPlayerStorageValue(cid, 9000)
print(npc)
print(storage)
--- the print of storage / npc isin't equal but the value in database is equal of npc....
But when i see the storage in database is equal of npc
So the thing is why when i use getPlayerStorageValue the return is not equal of the database value?