20.02.2017, 16:00
Quote:
Use the "wolf fence" debugging method. Comment out half of the code. If it still crashes it's in the part that isn't commented and else it is in the part that is commented. Repeat with ever smaller chunks until you find the culprit.
|
EDIT: Got smaller
EDIT2: If I take the IsPlayerLoggedIn out of the loop, the loop compiles, but the 1 line doesn't and there's no reason for it not to compile. It's defined with MAX_PLAYERS and is defined as a boolean. I tried converting it into an integer, and it still crashes. I've never had this issue happen before, and I'm starting to think it's a bug in the compiler.
PHP код:
//IsPlayerLoggedIn[playerid] = true;