stock checkenoughplayers()
{
new counter;
for(new i; i<MAX_PLAYERS; i++)
{
if(!IsPlayerConnected(i)) continue;
if(SpielerInfo[i][afk] == 1) continue;
//if(IsPlayerOnDesktop(i)) continue;
counter++;
}
printf("%i",counter);
if(counter > 1) { return 1; } else { return 0; }
}
Code
[13:02:32] [debug] Run time error 3: "Stack/heap collision (insufficient stack size)"
[13:02:32] [debug] Stack pointer (STK) is 0xC8B7C, heap pointer (HEA) is 0xC8B48
[13:02:32] [debug] AMX backtrace:
[13:02:32] [debug] #0 00000d88 in ?? (824) from U2.amx
[13:02:32] [debug] #1 00006fc0 in ?? () from U2.amx
[13:02:32] [debug] #2 00006ff8 in ?? () from U2.amx
[13:02:32] [debug] #3 00006ff8 in ?? () from U2.amx
[13:02:32] [debug] #4 00006ff8 in ?? () from U2.amx
[13:02:32] [debug] #5 00006ff8 in ?? () from U2.amx
[13:02:32] [debug] #6 00006ff8 in ?? () from U2.amx
[13:02:32] [debug] #7 00006ff8 in ?? () from U2.amx
[13:02:32] [debug] #8 00006ff8 in ?? () from U2.amx
[13:02:32] [debug] #9 00006ff8 in ?? () from U2.amx
[13:02:32] [debug] #10 00006ff8 in ?? () from U2.amx
[13:02:32] [debug] #11 00006ff8 in ?? () from U2.amx
[13:02:32] [debug] #12 00006ff8 in ?? () from U2.amx
[13:02:32] [debug] #13 00006ff8 in ?? () from U2.amx
[13:02:32] [debug] #14 00006ff8 in ?? () from U2.amx
[13:02:32] [debug] #15 00006ff8 in ?? () from U2.amx
[13:02:32] [debug] #16 00006ff8 in ?? () from U2.amx
[13:02:32] [debug] #17 00006ff8 in ?? () from U2.amx
[13:02:32] [debug] #18 00006ff8 in ?? () from U2.amx
[13:02:32] [debug] #19 00006ff8 in ?? () from U2.amx
[13:02:32] [debug] #20 00006ff8 in ?? () from U2.amx
[13:02:32] [debug] #21 00006ff8 in ?? () from U2.amx
[13:02:32] [debug] #22 00006ff8 in ?? () from U2.amx
[13:02:32] [debug] #23 00006ff8 in ?? () from U2.amx
[13:02:32] [debug] #24 00006ff8 in ?? () from U2.amx
[13:02:32] [debug] #25 00006ff8 in ?? () from U2.amx
[13:02:32] [debug] #26 00006ff8 in ?? () from U2.amx
[13:02:32] [debug] #27 00006ff8 in ?? () from U2.amx
[13:02:32] [debug] #28 00006ff8 in ?? () from U2.amx
[13:02:32] [debug] #29 00006ff8 in ?? () from U2.amx
[13:02:32] [debug] #30 00006ff8 in ?? () from U2.amx
[13:02:32] [debug] #31 00006ff8 in ?? () from U2.amx
[13:02:32] [debug] #32 00006ff8 in ?? () from U2.amx
[13:02:32] [debug] #33 00006ff8 in ?? () from U2.amx
[13:02:32] [debug] #34 00006ff8 in ?? () from U2.amx
[13:02:32] [debug] #35 00006ff8 in ?? () from U2.amx
[13:02:32] [debug] #36 00006ff8 in ?? () from U2.amx
[13:02:32] [debug] #37 00006ff8 in ?? () from U2.amx
[13:02:32] [debug] #38 00006ff8 in ?? () from U2.amx
[13:02:32] [debug] #39 00006ff8 in ?? () from U2.amx
[13:02:32] [debug] #40 00006ff8 in ?? () from U2.amx
[13:02:32] [debug] #41 00006ff8 in ?? () from U2.amx
[13:02:32] [debug] #42 00006ff8 in ?? () from U2.amx
[13:02:32] [debug] #43 00006ff8 in ?? () from U2.amx
[13:02:32] [debug] #44 00006ff8 in ?? () from U2.amx
[13:02:32] [debug] #45 00006ff8 in ?? () from U2.amx
[13:02:32] [debug] #46 00006ff8 in ?? () from U2.amx
[13:02:32] [debug] #47 00006ff8 in ?? () from U2.amx
[13:02:32] [debug] #48 00006ff8 in ?? () from U2.amx
[13:02:32] [debug] #49 00006ff8 in ?? () from U2.amx
[13:02:32] [debug] #50 00006ff8 in ?? () from U2.amx
[13:02:32] [debug] #51 00006ff8 in ?? () from U2.amx
[13:02:32] [debug] #52 00006ff8 in ?? () from U2.amx
[13:02:32] [debug] #53 00006ff8 in ?? () from U2.amx
[13:02:32] [debug] #54 00006ff8 in ?? () from U2.amx
[13:02:32] [debug] #55 00006ff8 in ?? () from U2.amx
[13:02:32] [debug] #56 00006ff8 in ?? () from U2.amx
[13:02:32] [debug] #57 00006ff8 in ?? () from U2.amx
[13:02:32] [debug] #58 00006ff8 in ?? () from U2.amx
[13:02:32] [debug] #59 00006ff8 in ?? () from U2.amx
[13:02:32] [debug] #60 00006ff8 in ?? () from U2.amx
[13:02:32] [debug] #61 00006ff8 in ?? () from U2.amx
[13:02:32] [debug] #62 00006ff8 in ?? () from U2.amx
[13:02:32] [debug] #63 00006ff8 in ?? () from U2.amx
[13:02:32] [debug] #64 00006ff8 in ?? () from U2.amx
[13:02:32] [debug] #65 00006ff8 in ?? () from U2.amx
[13:02:32] [debug] #66 00006ff8 in ?? () from U2.amx
[13:02:32] [debug] #67 00006ff8 in ?? () from U2.amx
[13:02:32] [debug] #68 00006ff8 in ?? () from U2.amx
[13:02:32] [debug] #69 00006ff8 in ?? () from U2.amx
[13:02:32] [debug] #70 00006ff8 in ?? () from U2.amx
[13:02:32] [debug] #71 00006ff8 in ?? () from U2.amx
[13:02:32] [debug] #72 00006ff8 in ?? () from U2.amx
[13:02:32] [debug] #73 00006ff8 in ?? () from U2.amx
[13:02:32] [debug] #74 00006ff8 in ?? () from U2.amx
[13:02:32] [debug] #75 00006ff8 in ?? () from U2.amx
[13:02:32] [debug] #76 00006ff8 in ?? () from U2.amx
[13:02:32] [debug] #77 00006ff8 in ?? () from U2.amx
[13:02:32] [debug] #78 00006ff8 in ?? () from U2.amx
[13:02:32] [debug] #79 00006ff8 in ?? () from U2.amx
[13:02:32] [debug] #80 00006ff8 in ?? () from U2.amx
[13:02:32] [debug] #81 00006ff8 in ?? () from U2.amx
[13:02:32] [debug] #82 00006ff8 in ?? () from U2.amx
[13:02:32] [debug] #83 00006ff8 in ?? () from U2.amx
[13:02:32] [debug] #84 00006ff8 in ?? () from U2.amx
[13:02:32] [debug] #85 00006ff8 in ?? () from U2.amx
[13:02:32] [debug] #86 00006ff8 in ?? () from U2.amx
[13:02:32] [debug] #87 00006ff8 in ?? () from U2.amx
[13:02:32] [debug] #88 00006ff8 in ?? () from U2.amx
[13:02:32] [debug] #89 00006ff8 in ?? () from U2.amx
[13:02:32] [debug] #90 00006ff8 in ?? () from U2.amx
[13:02:32] [debug] #91 00006ff8 in ?? () from U2.amx
[13:02:32] [debug] #92 00006ff8 in ?? () from U2.amx
[13:02:32] [debug] #93 00006ff8 in ?? () from U2.amx
[13:02:32] [debug] #94 00006ff8 in ?? () from U2.amx
[13:02:32] [debug] #95 00006ff8 in ?? () from U2.amx
[13:02:32] [debug] #96 00006ff8 in ?? () from U2.amx
[13:02:32] [debug] #97 00006ff8 in ?? () from U2.amx
[13:02:32] [debug] #98 00006ff8 in ?? () from U2.amx
[13:02:32] [debug] #99 00006ff8 in ?? () from U2.amx
[13:02:32] [debug] #100 00006ff8 in public ocmd_rundestarten () from U2.amx
[13:02:32] [debug] #101 native CallLocalFunction () from samp-server.exe
[13:02:32] [debug] #102 000004a4 in public OnPlayerCommandText (0, 822024) from U2.amx
Alles anzeigen
Wo liegt der Fehler?