yolfran
Mapper-Chibcha
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:
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
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