Are you not getting index out of bounds errors?
The first thing I can see is that this:
new bool:g_bIsReady[11]
needs to be
new bool:g_bIsReady[33]
because you need to hold every player index (1-32).
Try this:
PHP Code:
if (playersleft != 0)
{
new players[32], pnum, tempid;
get_players(players, pnum, "ch");
new szPlayerName[ 32 ];
for( new i; i<pnum; i++ )
{
tempid = players[i];
if (g_bIsReady[tempid] == false)
{
get_user_name(tempid, playername, 31)
add( notrdy, charsmax( notrdy ), playername );
add( notrdy, charsmax( notrdy ), "^n" );
}
}
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")
}
__________________