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

Function executes a SQL?

yolfran

Mapper-Chibcha
Joined
Jan 14, 2009
Messages
59
Reaction score
0
Location
Bucaramanga-Colombia!!!
Hello,someone have a function that execute a SQL query to remove a Storage Value in a Login Event in creatureScript?,I was trying with this:

PHP:
function RemoveVipStrorage(cid)
    db.executeQuery(DELETE FROM `player_storage` WHERE  `player_storage`.`key` = 35966 AND `player_storage`.`value` <= 0 AND `player_storage`.`player_id` = " .. cid .. ";")
end

The function is in lib/function and have a lot of errors.
I want to know if I'm calling right from the event login:

DoRemoveVipStorage

or if someone know's how to remove a storagevalue calling it in a creaturescript in a login.

PLix help again xD

Sorry for my english ,i¡'m learning xD
 
Back
Top