[Question] in MySql Codes

06/13/2014 11:30 Eslam Galull#1
i Just Wanna Edit THis Query :-


HTML Code:
If (@TargetCharName like 'ChangeTitle' and @Message = 'captain')
 begin
update SRO_VT_SHARD.dbo._Char set HwanLevel = 1 where CharName16 = @SenderCharName
 end
SOme Thing Like THat

If (@TargetCharName like 'ChangeTitle' and @Message = 'captain')
begin
if SRO_VT_SHARD.dbo._Char @SenderCharName Hwanlvl = 1 Then
Do Nothing
Else
update SRO_VT_SHARD.dbo._Char set HwanLevel = 1 where CharName16 = @SenderCharName
end
End

i USed To Coding in .Net i Dunno ANy Thing About SQL So
Any One Can Help Me To Make it Work ?!

Simply i wanna after Check the TargetCharName & his Msg
i wanna another Check About his Current Hwanlvl if it =1 . No Reaction or exit Sub

if his Hwan lvl =2 or moree . Update his hwan lvl with the New thing !

its a simply question about using IF statment in MySql !

So waiting Help ! <3
06/13/2014 13:08 FL0wshY#2
I should kill myself after seeing that. It wouldn't change anything, It'll set his HwanLevel to 1 anyway..
06/13/2014 13:54 Eslam Galull#3
Dude you didnt understand what i mean

i just want when he send msg to Him self with titlename which he wanna

i just wanna before give him the hwanlvl Number ( which have the title ) i wanna check his current hwan lvl .. For ex. My Non Donaters have hwan lvl 1 . i won't them change it

you got it ?!
06/14/2014 20:29 radde94#4
Can you give the entire system instead of sending pieces?
06/17/2014 19:40 Eslam Galull#5
Fixed >> USING BRAIN.EXE <3
06/17/2014 21:49 Certus#6
still missing the "mysql code"
06/20/2014 00:29 Eslam Galull#7
Quote:
Originally Posted by Certus View Post
still missing the "mysql code"
Fixed & Already Released TO Help Ppl ! :)