[Execution Problem]: OnPlayerSpawn
#1

Hello, so I have a problem that OnPlayerSpawn callback doesn't execute all information that it has,
for example, I have 72 lines in OnPlayerSpawn but only a few lines execute
Reply
#2

Unless most of the code isn't placed inside if/else if/else statements that do not get executed if the expression is not true then it is likely a run time error issue which makes the code to stop. Have crashdetect plugin loaded and see the results. If nothing happens, post the code and/or debug it.
Reply
#3

Well, I have loads of if/else statements, would replacing it with switch fix this?
Reply
#4

If it's possible why not? switch is faster than if/else statements.
Reply
#5

uh, thanks guys, problem solved,
I just used switch
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)