12.09.2018, 01:36
Good evening everyone , well ... my mistake is this:
Line:
What I try to change in these lines are the colors of the Administrative Names, since they are blank, and I add the colors {}, but when compiling I skip that error.
Complete code:
Код:
C:\Users\Crouse\Documents\ZZ\ZZ\gamemodes\ZZ-RP.pwn(11570) : error 047: array sizes do not match, or destination array is too small C:\Users\Crouse\Documents\ZZ\ZZ\gamemodes\ZZ-RP.pwn(11573) : error 047: array sizes do not match, or destination array is too small Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Errors.
Код:
else if(cuenta[i][cAdministrador] == 2013){ admtext = "{FA8258}Encargado de Staff"; } else if(cuenta[i][cAdministrador] == 2012){ admtext = "{FF0000}Administrador"; } else if(cuenta[i][cAdministrador] == 6){ admtext = "{FE2E2E}Co-Admin"; } else if(cuenta[i][cAdministrador] == 5) { admtext = "{0000FF}Moderador Global"; }
Complete code:
Код:
command(admins, playerid, params[]){ Mensaje(playerid, COLOR_GRIS2, "| Staff de PlazeWorld |"); for(new i=0, t=GetMaxPlayers();i<t;i++){ if(IsPlayerConnected(i)){ if(cuenta[i][cAdministrador] >= 1 && cuenta[i][cAdministrador] <= 2014){ new string[128], admtext[24]; if(cuenta[i][cAdministrador] == 2014){ admtext = "{AC58FA}Dueсo"; } else if(cuenta[i][cAdministrador] == 2013){ admtext = "{FA8258}Encargado de Staff"; } else if(cuenta[i][cAdministrador] == 2012){ admtext = "{FF0000}Administrador"; } else if(cuenta[i][cAdministrador] == 6){ admtext = "{FE2E2E}Co-Admin"; } else if(cuenta[i][cAdministrador] == 5) { admtext = "{0000FF}Moderador Global"; } else if(cuenta[i][cAdministrador] == 4) { admtext = "Administrador"; } else if(cuenta[i][cAdministrador] == 3) { admtext = "Admin Junior"; } else if(cuenta[i][cAdministrador] == 2) { admtext = "Moderador"; } else if(cuenta[i][cAdministrador] == 1) { admtext = "Ayudante"; } if(!booleano[AdminDuty]{i}){ format(string, sizeof(string), " %s - %s", admtext, PlayerName(i)); Mensaje(playerid, COLOR_BLANCO, string); } else{ format(string, sizeof(string), "{008B00}(En servicio){FFFFFF} %s - %s [%d]", admtext, PlayerName(i), i); Mensaje(playerid, COLOR_BLANCO, string); } } } } return 1; }