05.10.2015, 11:01
Tried bumping that 2056 higher, no effect.
Edit: Altering everything I possibly can, recounting everything, etc. Updated code below.
Edit: Altering everything I possibly can, recounting everything, etc. Updated code below.
pawn Код:
CMD:game(playerid, params[])
{
OnBoard[playerid] = true;
new str[2056], str2[2056], GameStatusStr[48], JoinedPlayerStr[24][48];
switch(GameStatus)
{
case 0: GameStatusStr = "{33CC33}Ready for play! (/ready)";
case 1: GameStatusStr = "{FF0000}Starting...";
case 2: GameStatusStr = "{FFFFFF}In Progress...";
case 3: GameStatusStr = "{DDDD00}Finished! Resetting...";
case 4: GameStatusStr = "{FF0000}! LOCKED !";
}
for(new i=0; i<24; i++)
{
if(JoinedPlayer[i] == -1) format(JoinedPlayerStr[i], 48, "{AAAAAA}===", GetName(JoinedPlayer[i]));
else
{
new Float:Health;
GetPlayerHealth(JoinedPlayer[i], Health);
switch(Health)
{
case 90..100: format(JoinedPlayerStr[i], 48, "{33CC33}%s", GetName(JoinedPlayer[i]));
case 70..89: format(JoinedPlayerStr[i], 48, "{99CC00}%s", GetName(JoinedPlayer[i]));
case 50..69: format(JoinedPlayerStr[i], 48, "{DDDD00}%s", GetName(JoinedPlayer[i]));
case 20..49: format(JoinedPlayerStr[i], 48, "{FF6600}%s", GetName(JoinedPlayer[i]));
case 1..19: format(JoinedPlayerStr[i], 48, "{FF0000}%s", GetName(JoinedPlayer[i]));
case 0: format(JoinedPlayerStr[i], 48, "{AAAAAA}%s", GetName(JoinedPlayer[i]));
}
}
}
strcat(str, "Game Status: %s\n---------------------------------------------------\n");
strcat(str, "%s\t%s\t%s\t%s\n");
strcat(str, "%s\t%s\t%s\t%s\n");
strcat(str, "%s\t%s\t%s\t%s\n");
strcat(str, "%s\t%s\t%s\t%s\n");
strcat(str, "%s\t%s\t%s\t%s\n");
strcat(str, "%s\t%s\t%s\t%s");
format(str2, sizeof(str2), str, GameStatusStr, JoinedPlayerStr[0], JoinedPlayerStr[1], JoinedPlayerStr[2], JoinedPlayerStr[3], JoinedPlayerStr[4], JoinedPlayerStr[5], JoinedPlayerStr[6], JoinedPlayerStr[7], JoinedPlayerStr[8], JoinedPlayerStr[9], JoinedPlayerStr[10], JoinedPlayerStr[11], JoinedPlayerStr[12], JoinedPlayerStr[13], JoinedPlayerStr[14], JoinedPlayerStr[15], JoinedPlayerStr[16], JoinedPlayerStr[17], JoinedPlayerStr[18], JoinedPlayerStr[19], JoinedPlayerStr[20], JoinedPlayerStr[21], JoinedPlayerStr[22], JoinedPlayerStr[23]);
return ShowPlayerDialog(playerid, GAME_DIALOG, DIALOG_STYLE_TABLIST, "The Hunger Games 2015", str2, "Close", "");
}