SA-MP Forums Archive
[ayuda] Error :| - 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: [ayuda] Error :| (/showthread.php?tid=304111)



[ayuda] Error :| - [Nikk] - 17.12.2011

En el ultimo comando tengo:

pawn Код:
if(strcmp(cmdtext,"/armas",true) == 0)
    {
        strcat( string, "{FFFFFF}AK-47 {FF9900}- {FF0000}12000{33AA33}$\n\
                        {FFFFFF}Sniper {FF9900}- {FF0000}5000{33AA33}$\n\
                        FFFFFF}Tec9 {FF9900}- {FF0000}5900{33AA33}$\n\
                        {FFFFFF}9mm {FF9900}- {FF0000}3000{33AA33}$\n\
                        {FFFFFF}Silenced 9mm {FF9900}- {FF0000}5600{33AA33}$\n\
                        {FFFFFF}M4 {FF9900}- {FF0000}14000{33AA33}$\n\
                        {FFFFFF}SMG (MP5) {FF9900}- {FF0000}10000{33AA33}$\n\
                        {FFFFFF}Health + Armour {FF9900}- {FF0000}2500{33AA33}$"
, 390 );
  ShowPlayerDialog( playerid, DIALOG_WEAPONS, DIALOG_STYLE_LIST, "{FFFFFF}Menu de Armas"Weapons: {000000}( by [SRC]stuntman )
        return 1;

    }
return ShowPlayerDialog(playerid, COMANDOS, DIALOG_STYLE_MSGBOX, "{00F6F6}Error - Comando Desconocido:",ComandoIncorrecto, "Comandos", "Salir");
}
y me tira estos errores:

Код:
D:\------\SADM.pwn(1584) : error 017: undefined symbol "PlayerInfo"
D:\-------\SADM.pwn(1584) : warning 215: expression has no effect
D:\-------\SADM.pwn(1584) : error 001: expected token: ";", but found "]"
D:\-------\SADM.pwn(1584) : error 029: invalid expression, assumed zero
D:\-------\SADM.pwn(1584) : fatal error 107: too many error messages on one line
Por que? intente todo, hasta aveces se me cerraba el pawno -.-
Gracias


Respuesta: [ayuda] Error :| - Adoniiz - 17.12.2011

pawn Код:
if(strcmp(cmdtext,"/armas",true) == 0)
    {
        strcat( string, "{FFFFFF}AK-47 {FF9900}- {FF0000}12000{33AA33}$\n\
                        {FFFFFF}Sniper {FF9900}- {FF0000}5000{33AA33}$\n\
                        FFFFFF}Tec9 {FF9900}- {FF0000}5900{33AA33}$\n\
                        {FFFFFF}9mm {FF9900}- {FF0000}3000{33AA33}$\n\
                        {FFFFFF}Silenced 9mm {FF9900}- {FF0000}5600{33AA33}$\n\
                        {FFFFFF}M4 {FF9900}- {FF0000}14000{33AA33}$\n\
                        {FFFFFF}SMG (MP5) {FF9900}- {FF0000}10000{33AA33}$\n\
                        {FFFFFF}Health + Armour {FF9900}- {FF0000}2500{33AA33}$"
);
  ShowPlayerDialog(playerid, DIALOG_WEAPONS, DIALOG_STYLE_LIST, "{FFFFFF}Menu de Armas Weapons: {000000}( by [SRC]stuntman",string, "Aceptar","Cancelar");
return ShowPlayerDialog(playerid,COMANDOS, DIALOG_STYLE_MSGBOX, "{00F6F6}Error - Comando Desconocido:",ComandoIncorrecto, "Comandos", "Salir");
}



Re: [ayuda] Error :| - OziiL - 18.12.2011

Te faltaba terminar la linea donde empieza el primer show dialog xd con el string y cancelar bla bla...