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

Lua Bug Movements

helflin

New Member
Joined
Sep 8, 2011
Messages
9
Reaction score
0
Location
Rio de Janeiro
Hi guys,

I have these code in an file with extension .lua
doPlayerSendTextMessage(cid,22,"Voce entrou na sala de treinamento.")
db.query("UPDATE `players` SET `is_training` = 1 WHERE name = '".. getCreatureName(cid).."'")

But i have one problem, when the CreatureName have ' ... an example: Knight'Parsk, it's a problem, but don't update in database because the illegal character '
I know that in PHP language have an function that put some \ before this ' to update/insert in database, this function is ADDSLASHES( ), but in .LUA i don't know...

Any solution?

Sorry for the mistakes, i don't speak English well and still don't like to use translators kkkkk
Thanks.
 
Back
Top