SA-MP Forums Archive
Super weird debug error's when trying to join server - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Super weird debug error's when trying to join server (/showthread.php?tid=655752)



Loop in OnPlayerConnect not working properly and crashing the server? - Tass007 - 29.06.2018

EDIT: I found the issue. However this issue is my CreateTextDrawPlayer

PHP код:
CreateTextDrawPlayer(playerid)
{
    
//--Error Message--//
    
for(new i!= GetMaxPlayers(); i++) ErrorMessage[i] = CreatePlayerTextDraw(i320.0240.0"~r~Error Message");
    return 
1;

This line is what is screwing up my script. Anyone know why?

EDIT: I fixed it changed GetMaxPlayers to MAX_PLAYERS