title says it all. I want to use it for something in an episode.
Player of hedgewars!!!
And hi... it's me from smbx Currently bug testing for Mac And Windows | ||
Generally you can catch that with a pcall. But I wouldn't recommend debug message boxes as a gameplay element.
▬▬▬▬▬▬▬▬▬▬ஜ۩۞۩ஜ▬▬▬▬▬▬▬▬ Signature.start() ▬▬▬▬▬▬▬▬▬▬ஜ۩۞۩ஜ▬▬▬▬▬▬▬
▬▬▬▬▬▬▬▬▬▬ஜ۩۞۩ஜ▬▬▬▬▬▬▬▬ Signature.end() ▬▬▬▬▬▬▬▬▬▬ஜ۩۞۩ஜ▬▬▬▬▬▬▬▬ | ||
It's the easiest way to ask a yes or no question :p Also, is pcall a global function?
Player of hedgewars!!!
And hi... it's me from smbx Currently bug testing for Mac And Windows | ||
I wouldn't answer a "How to"-Question with a yes or no. pcall is a global lua function: Code: Select all if pcall(windowDebug("LOL")) then ▬▬▬▬▬▬▬▬▬▬ஜ۩۞۩ஜ▬▬▬▬▬▬▬▬ Signature.start() ▬▬▬▬▬▬▬▬▬▬ஜ۩۞۩ஜ▬▬▬▬▬▬▬
▬▬▬▬▬▬▬▬▬▬ஜ۩۞۩ஜ▬▬▬▬▬▬▬▬ Signature.end() ▬▬▬▬▬▬▬▬▬▬ஜ۩۞۩ஜ▬▬▬▬▬▬▬▬ | ||
Ok, So I tried this code, but when I press ok, it's seems to go to the else part of the if/else statement. The cancel button still pops up with the message saying that I pressed cancel on debug.
Code: Select all function onLoad() Player of hedgewars!!!
And hi... it's me from smbx Currently bug testing for Mac And Windows | ||
I think. you just accidentally mistook with brekets
Code: Select all function onLoad() | ||
Idk why, but for some reason I got an error when putting the code in.
am I supposed to define pcall as something first? Player of hedgewars!!!
And hi... it's me from smbx Currently bug testing for Mac And Windows | ||
woops, my bad:
Code: Select all if pcall(function() windowDebug("LOL") end) then ▬▬▬▬▬▬▬▬▬▬ஜ۩۞۩ஜ▬▬▬▬▬▬▬▬ Signature.start() ▬▬▬▬▬▬▬▬▬▬ஜ۩۞۩ஜ▬▬▬▬▬▬▬
▬▬▬▬▬▬▬▬▬▬ஜ۩۞۩ஜ▬▬▬▬▬▬▬▬ Signature.end() ▬▬▬▬▬▬▬▬▬▬ஜ۩۞۩ஜ▬▬▬▬▬▬▬▬ | ||
Thanks Kevsoft, It worked
Player of hedgewars!!!
And hi... it's me from smbx Currently bug testing for Mac And Windows | ||
Who is online (over the past 5 minutes)Users browsing this forum: 2 guests | ||