SA-MP Forums Archive
[Error] 047 array sizes do not match, or destination array is too small - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Español/Spanish (https://sampforum.blast.hk/forumdisplay.php?fid=29)
+---- Thread: [Error] 047 array sizes do not match, or destination array is too small (/showthread.php?tid=577104)



[Error] 047 array sizes do not match, or destination array is too small - SetPlayerWantedLevel - 09.06.2015

Solucionado, gracias Sick y Goncho


Re: [Error] 047 array sizes do not match, or destination array is too small - SickAttack - 09.06.2015

Cambia el valor de las celdas de la variable bone5.

pawn Код:
new bone5[22];



Re: [Error] 047 array sizes do not match, or destination array is too small - SetPlayerWantedLevel - 09.06.2015

Ahora me da otro error


Respuesta: [Error] 047 array sizes do not match, or destination array is too small - Goncho28 - 09.06.2015

Lo que te puso Sick estб bien, el problema estб en tъ cуdigo, ponelo asн

pawn Код:
if(listitem == 5)
            {
                if(PlayerInfo[playerid][ItemSlot5] == 1)
                {
                    new bone5[22];
                    if(PlayerInfo[playerid][Item5Bone] == 1) { bone5 = "Espina"; }
                    else if(PlayerInfo[playerid][Item5Bone] == 2) { bone5 = "Cabeza"; }
                    else if(PlayerInfo[playerid][Item5Bone] == 3) { bone5 = "Hombro izquierdo"; }
                    else if(PlayerInfo[playerid][Item5Bone] == 4) { bone5 = "Hombro derecho"; }
                    else if(PlayerInfo[playerid][Item5Bone] == 5) { bone5 = "Mano izquierda"; }
                    else if(PlayerInfo[playerid][Item5Bone] == 6) { bone5 = "Mano derecha"; }
                    else if(PlayerInfo[playerid][Item5Bone] == 7) { bone5 = "Muslo izquierdo"; }
                    else if(PlayerInfo[playerid][Item5Bone] == 8) { bone5 = "Muslo derecho"; }
                    else if(PlayerInfo[playerid][Item5Bone] == 9) { bone5 = "Pierna izquierda"; }
                    else if(PlayerInfo[playerid][Item5Bone] == 10) { bone5 = "Pierna derecha"; }
                    else if(PlayerInfo[playerid][Item5Bone] == 11) { bone5 = "Pantorrilla derecha"; }
                    else if(PlayerInfo[playerid][Item5Bone] == 12) { bone5 = "Pantorrilla izquierda"; } //lнnea 16048
                    else if(PlayerInfo[playerid][Item5Bone] == 13) { bone5 = "Antebrazo izquierdo"; }
                    else if(PlayerInfo[playerid][Item5Bone] == 14) { bone5 = "Antebrazo derecho"; }
                    else if(PlayerInfo[playerid][Item5Bone] == 15) { bone5 = "Clavнcula izquierda"; }
                    else if(PlayerInfo[playerid][Item5Bone] == 16) { bone5 = "Clavнcula derecha"; }
                    else if(PlayerInfo[playerid][Item5Bone] == 17) { bone5 = "Cuello"; }
                    else if(PlayerInfo[playerid][Item5Bone] == 18) { bone5 = "Mandнbula"; }
                    else if(PlayerInfo[playerid][Item5Bone] == 0) { bone5 = "Unknown"; }
                    format(string, sizeof(string), "Bone\t: %s\nOffsetX\t: %f\nOffsetY\t: %f\nOffsetZ\t: %f\nRotX\t: %f\nRotY\t: %f\nRotZ\t: %f\nWear", bone5, PlayerInfo[playerid][Item5OffsetX], PlayerInfo[playerid][Item5OffsetY], PlayerInfo[playerid][Item5OffsetZ], PlayerInfo[playerid][Item5RotX], PlayerInfo[playerid][Item5RotY], PlayerInfo[playerid][Item5RotZ]);
                    ShowPlayerDialog(playerid, 461, DIALOG_STYLE_LIST, "Editar item slot 5", string, "Editar", "Cancelar");



Re: Respuesta: [Error] 047 array sizes do not match, or destination array is too small - SetPlayerWantedLevel - 09.06.2015

Listo, gracias, + REP a los dos


Respuesta: [Error] 047 array sizes do not match, or destination array is too small - OTACON - 10.06.2015

PHP код:
    new bone[][]={
        { 
"Unknown" },
        { 
"Espina" },
        { 
"Cabeza" },
        { 
"Hombro izquierdo" },
        { 
"Hombro derecho" },
        { 
"Mano izquierda" },
        { 
"Mano derecha" },
        { 
"Muslo izquierdo" },
        { 
"Muslo derecho" },
         { 
"Pierna izquierda" },
        { 
"Pierna derecha" },
        { 
"Pantorrilla derecha" },
        { 
"Pantorrilla izquierda" },
        { 
"Antebrazo izquierdo" },
        { 
"Antebrazo derecho" },
        { 
"Clavнcula izquierda" },
        { 
"Clavнcula derecha" },
        { 
"Cuello" },
        { 
"Mandнbula" }
    };
    
format(stringsizeof(string), "Bone\t: %s\nOffsetX\t: %f\nOffsetY\t: %f\nOffsetZ\t: %f\nRotX\t: %f\nRotY\t: %f\nRotZ\t: %f\nWear"bonePlayerInfo[playerid][Item5Bone] ], PlayerInfo[playerid][Item5OffsetX], PlayerInfo[playerid][Item5OffsetY], PlayerInfo[playerid][Item5OffsetZ], PlayerInfo[playerid][Item5RotX], PlayerInfo[playerid][Item5RotY], PlayerInfo[playerid][Item5RotZ]);
    
ShowPlayerDialog(playerid461DIALOG_STYLE_LIST"Editar item slot 5"string"Editar""Cancelar"); 



Re: [Error] 047 array sizes do not match, or destination array is too small - admantis - 10.06.2015

No edites el primer post, їsabнas que alguien mбs podrнa tener tu mismo problema?


Re: [Error] 047 array sizes do not match, or destination array is too small - SetPlayerWantedLevel - 10.06.2015

OTACON ya lo arreglй con los usuarios de arriba...

Adamantis, perdуn, no se me ocurriу, no volverб a pasar