Your code reads as:
Code: ags
Yeah, I can see how that's not working...
Khris gave you the correct structure earlier.
Code: ags
function unhandled_event(int what, int type) {
if (what == 2) { // If "what" is 2
}
else { // If "what" is anything other that 2
if (what == 2){ // If "what" is 2
}
}
}
Yeah, I can see how that's not working...
Khris gave you the correct structure earlier.
if (what == 1) {
if (type==1) {
}
else if (type==2) {
}
// ...
else if (what==2) {
if (type==1) {
}
else if (type==2) {
}
// ...
}
// ...