jokerofsouls Posted September 20, 2008 Share Posted September 20, 2008 I need help making a if else statement, function Captain_Dementox_Enrage(pUnit, event) if pUnit:GetHealthPct() < 40 then pUnit:RemoveEvents() pUnit:PlaySoundToSet(11273) pUnit:CastSpell(33653) pUnit:CastSpell(36900) pUnit:SendChatMessage(11,0,"Test") end end If the script has a if in it then it will have 2 ends but if it dont then it will only have 1. this is all i need done for tonight Link to comment https://forums.phpfreaks.com/topic/125043-if-else-help/ Share on other sites More sharing options...
ratcateme Posted September 20, 2008 Share Posted September 20, 2008 what you have post is not even close to valid PHP is it like modified C or something? and if i get you right i think you might have the right idea closing things but you need to use {'s and }'s not ends and stuff Scott. Link to comment https://forums.phpfreaks.com/topic/125043-if-else-help/#findComment-646209 Share on other sites More sharing options...
F1Fan Posted September 20, 2008 Share Posted September 20, 2008 if (youpostedthat){ yourenotprogramminginphp } else{ wellthatsreallytheonlypossibility } Link to comment https://forums.phpfreaks.com/topic/125043-if-else-help/#findComment-646212 Share on other sites More sharing options...
jokerofsouls Posted September 20, 2008 Author Share Posted September 20, 2008 >.< i know its not php its lua im making a luamaker in php and i need a if else statement if there is a if then there will be 2 ends if there is not a if there will only be 1 end thats all i need Link to comment https://forums.phpfreaks.com/topic/125043-if-else-help/#findComment-646213 Share on other sites More sharing options...
chronister Posted September 20, 2008 Share Posted September 20, 2008 A clearer definition of the problem and some valid sample code to get an idea of what your talking about is all we need. Link to comment https://forums.phpfreaks.com/topic/125043-if-else-help/#findComment-646215 Share on other sites More sharing options...
jokerofsouls Posted September 20, 2008 Author Share Posted September 20, 2008 ok i got it thanks F1Fan Link to comment https://forums.phpfreaks.com/topic/125043-if-else-help/#findComment-646218 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.