enum
{
RangoEnClan,
RangoClanNombre[129]
}
stock GetRangeName(playerid)
{
switch(Player[playerid][RangoEnClan])
{
case 0: Player[playerid][RangoClanNombre] = "Desconocido";
case 1: Player[playerid][RangoClanNombre] = "Nuevo";
case 2: Player[playerid][RangoClanNombre] = "Miembro";
case 3: Player[playerid][RangoClanNombre] = "Miembro Veterano";
case 4: Player[playerid][RangoClanNombre] = "Miembro Leyenda";
case 5: Player[playerid][RangoClanNombre] = "Miembro Reclutador";
case 6: Player[playerid][RangoClanNombre] = "Co-Lider";
case 7: Player[playerid][RangoClanNombre] = "Fundador";
}
return Player[playerid][RangoClanNombre];
}
C:\Users\marce_000\Desktop\REVDMX\gamemodes\revDMX.pwn(4647) : error 047: array sizes do not match, or destination array is too small
C:\Users\marce_000\Desktop\REVDMX\gamemodes\revDMX.pwn(4648) : error 047: array sizes do not match, or destination array is too small
C:\Users\marce_000\Desktop\REVDMX\gamemodes\revDMX.pwn(4649) : error 047: array sizes do not match, or destination array is too small
C:\Users\marce_000\Desktop\REVDMX\gamemodes\revDMX.pwn(4650) : error 047: array sizes do not match, or destination array is too small
C:\Users\marce_000\Desktop\REVDMX\gamemodes\revDMX.pwn(4651) : error 047: array sizes do not match, or destination array is too small
C:\Users\marce_000\Desktop\REVDMX\gamemodes\revDMX.pwn(4652) : error 047: array sizes do not match, or destination array is too small
C:\Users\marce_000\Desktop\REVDMX\gamemodes\revDMX.pwn(4653) : error 047: array sizes do not match, or destination array is too small
C:\Users\marce_000\Desktop\REVDMX\gamemodes\revDMX.pwn(4654) : error 047: array sizes do not match, or destination array is too small
stock GetRangeName(playerid) { switch(Player[playerid][RangoEnClan]) { case 0: format(Player[playerid][RangoClanNombre], 129, "Desconocido"); case 1: format(Player[playerid][RangoClanNombre], 129, "Nuevo"); case 2: format(Player[playerid][RangoClanNombre], 129, "Miembro"); case 3: format(Player[playerid][RangoClanNombre], 129, "Miembro Veterano"); case 4: format(Player[playerid][RangoClanNombre], 129, "Miembro Leyenda"); case 5: format(Player[playerid][RangoClanNombre], 129, "Miembro Reclutador"); case 6: format(Player[playerid][RangoClanNombre], 129, "Co-Lider"); case 7: format(Player[playerid][RangoClanNombre], 129, "Fundador"); } return Player[playerid][RangoClanNombre]; }
enum { RangoEnClan, RangoClanNombre[129] }
enum { RangoEnClan, RangoClanNombre[256] }
stock GetRangeName(playerid) { switch(Player[playerid][RangoEnClan]) { case 0: format(Player[playerid][RangoClanNombre], 129, "Desconocido"); case 1: format(Player[playerid][RangoClanNombre], 129, "Nuevo"); case 2: format(Player[playerid][RangoClanNombre], 129, "Miembro"); case 3: format(Player[playerid][RangoClanNombre], 129, "Miembro Veterano"); case 4: format(Player[playerid][RangoClanNombre], 129, "Miembro Leyenda"); case 5: format(Player[playerid][RangoClanNombre], 129, "Miembro Reclutador"); case 6: format(Player[playerid][RangoClanNombre], 129, "Co-Lider"); case 7: format(Player[playerid][RangoClanNombre], 129, "Fundador"); } return Player[playerid][RangoClanNombre]; }
stock GetRangeName(playerid) { switch(Player[playerid][RangoEnClan]) { case 0: format(Player[playerid][RangoClanNombre], 256, "Desconocido"); case 1: format(Player[playerid][RangoClanNombre], 256, "Nuevo"); case 2: format(Player[playerid][RangoClanNombre], 256, "Miembro"); case 3: format(Player[playerid][RangoClanNombre], 256, "Miembro Veterano"); case 4: format(Player[playerid][RangoClanNombre], 256, "Miembro Leyenda"); case 5: format(Player[playerid][RangoClanNombre], 256, "Miembro Reclutador"); case 6: format(Player[playerid][RangoClanNombre], 256, "Co-Lider"); case 7: format(Player[playerid][RangoClanNombre], 256, "Fundador"); } return Player[playerid][RangoClanNombre]; }
enum ENUM_CLAN { RangoEnClan, RangoClanNombre[129] }; new Player[MAX_PLAYERS][ENUM_CLAN];
Intenta con este enum
Код HTML:
enum ENUM_CLAN { RangoEnClan, RangoClanNombre[129] }; new Player[MAX_PLAYERS][ENUM_CLAN]; |
stock GetRangeName(playerid) { new str[129]; switch(Player[playerid][RangoEnClan]) { case 0: strmid(str, "Desconocido", 0, strlen(str), 129); case 1: strmid(str, "Nuevo", 0, strlen(str), 129); case 2: strmid(str, "Miembro", 0, strlen(str), 129); case 3: strmid(str, "Miembro Veterano", 0, strlen(str), 129); case 4: strmid(str, "Miembro Leyenda", 0, strlen(str), 129); case 5: strmid(str, "Miembro Reclutador", 0, strlen(str), 129); case 6: strmid(str, "Co-Lнder", 0, strlen(str), 129); case 7: strmid(str, "Fundador", 0, strlen(str), 129); } return str; }