I have a mode that checks if someone is ready or not (you'll see the variable that shows it, g_IsReady), the problem is, that it shows maximum 3 or 2 players that are not ready in the server, and sometimes it doesnt show the name fully, so if my name would be Diegorkable, it would show Diegorka or something like that that is my name and not fully, so it displays just a part of my name, I tried making the variables with [2000] many cells available so it'll let it copy, but still it doesnt, wierd, check the code tell me if you see something please. The Public ShowLeft() refreshes every 1 minute in order to check if he did .rdy or not
PHP Code:
/* Global Variables in the code */
new playersleft = 10
new bool:g_bIsReady[11]
new notrdy[400] = "Not Ready:^n"
/* Global ... */
public ShowLeft()
{
if (playersleft != 0)
{
new players[32], pnum, tempid;
get_players(players, pnum, "ch");
for( new i; i<pnum; i++ )
{
tempid = players[i];
if (g_bIsReady[tempid] == false)
{
new playername[200]
get_user_name(tempid, playername, 31)
new toadd[32] = "^n"
add(toadd, 31, playername)
add(notrdy, 31, toadd)
}
}
if (equali(notrdy, "Not Ready:^n"))
{
notrdy = "Not Ready:^n^nNone."
}
set_hudmessage(127, 255, 255, 0.03, 0.05, 0, 6.0, 12.0)
show_hudmessage(0, notrdy)
notrdy = "Not Ready:^n"
set_task(1.0, "ShowLeft")
}
else
{
return PLUGIN_HANDLED
}
return PLUGIN_HANDLED
}