SA-MP Forums Archive
[Ajuda] ajuda com emp + dialogo - 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: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] ajuda com emp + dialogo (/showthread.php?tid=423223)



ajuda com emp + dialogo - FPB_Lipos - 17.03.2013

Galera sigo o comando:
pawn Код:
if(!strcmp("/consultarimpostometro", cmdtext, true))
    {
        if (PlayerToPoint(2.0, playerid, 1483.9629,-1749.7958,15.4453))
        {
        Controle(playerid, 0);
        ShowPlayerDialog(playerid, 5053, DIALOG_STYLE_MSGBOX, "Impostometro de Los Santos", "{FFFFFF}Atualmente estamos com R$%d Arrecadados", SBizzInfo[23][targetid][sbTill], "Ok", "Fechar");
        }
        return true;
    }
quem tiver na cood ( 1483.9629,-1749.7958,15.4453 ) e digitar esse comando,
vai abir um dialog dizendo o quanto tem no cofre na Mini Empresa de ID 23
sу que estб dando os seguinte aviso:

Код:
C:\Users\Felipe\Desktop\GTA\gamemodes\BML.pwn(17542) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase

Header size:          11836 bytes
Code size:          2242368 bytes
Data size:          2209180 bytes
Stack/heap size:      16384 bytes; estimated max. usage=7008 cells (28032 bytes)
Total requirements: 4479768 bytes

1 Warning.
Jб no jogo quando vocк vai abrir o impostometro aparece:

Atualmente estamos com R$%d Arrecadados
D Fechar


Respuesta: ajuda com emp + dialogo - Parka - 17.03.2013

pawn Код:
if(!strcmp("/consultarimpostometro", cmdtext, true))
    {
        if (PlayerToPoint(2.0, playerid, 1483.9629,-1749.7958,15.4453))
        {
        Controle(playerid, 0);
        new str[128];
        format(str, sizeof str, "{FFFFFF}Atualmente estamos com R$%d Arrecadados", SBizzInfo[23][targetid][sbTill]);
        ShowPlayerDialog(playerid, 5053, DIALOG_STYLE_MSGBOX, "Impostometro de Los Santos", str, "Ok", "Fechar");
        }
        return true;
    }



Re: ajuda com emp + dialogo - Gii - 17.03.2013

pawn Код:
if(!strcmp("/consultarimpostometro", cmdtext, true)) {

    if (IsPlayerInRangeOfPoint(playerid, 2.0, 1483.9629,-1749.7958,15.4453)) {
   
        new pStr[58];
        fortmat(pStr, 58, "{FFFFFF}Atualmente estamos com R$%d Arrecadados", SBizzInfo[23][targetid][sbTill]);
        Controle(playerid, 0);
        ShowPlayerDialog(playerid, 5053, DIALOG_STYLE_MSGBOX, "Impostometro de Los Santos", pStr , "Fechar", "");
    }
    return true;
}



Re: ajuda com emp + dialogo - FPB_Lipos - 17.03.2013

Quote:
Originally Posted by Programador_Macabro
Посмотреть сообщение
pawn Код:
if(!strcmp("/consultarimpostometro", cmdtext, true)) {


    if (IsPlayerInRangeOfPoint(playerid, 2.0, 1483.9629,-1749.7958,15.4453)) {
   
        new pStr[58];
        fortmat(pStr, 58, "{FFFFFF}Atualmente estamos com R$%d Arrecadados", SBizzInfo[23][targetid][sbTill]);
        Controle(playerid, 0);
        ShowPlayerDialog(playerid, 5053, DIALOG_STYLE_MSGBOX, "Impostometro de Los Santos", pStr , "Fechar", "");
    }
    return true;
}
Код:
C:\Users\Felipe\Desktop\GTA\gamemodes\BML.pwn(17541) : error 017: undefined symbol "fortmat"
C:\Users\Felipe\Desktop\GTA\gamemodes\BML.pwn(17541) : error 029: invalid expression, assumed zero
C:\Users\Felipe\Desktop\GTA\gamemodes\BML.pwn(17541) : warning 215: expression has no effect
C:\Users\Felipe\Desktop\GTA\gamemodes\BML.pwn(17541) : error 001: expected token: ";", but found "]"
C:\Users\Felipe\Desktop\GTA\gamemodes\BML.pwn(17541) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.



Re: ajuda com emp + dialogo - Gii - 17.03.2013

Quote:
Originally Posted by FPB_Lipos
Посмотреть сообщение
Код:
C:\Users\Felipe\Desktop\GTA\gamemodes\BML.pwn(17541) : error 017: undefined symbol "fortmat"
C:\Users\Felipe\Desktop\GTA\gamemodes\BML.pwn(17541) : error 029: invalid expression, assumed zero
C:\Users\Felipe\Desktop\GTA\gamemodes\BML.pwn(17541) : warning 215: expression has no effect
C:\Users\Felipe\Desktop\GTA\gamemodes\BML.pwn(17541) : error 001: expected token: ";", but found "]"
C:\Users\Felipe\Desktop\GTA\gamemodes\BML.pwn(17541) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
pawn Код:
if(!strcmp("/consultarimpostometro", cmdtext, true)) {

    if (IsPlayerInRangeOfPoint(playerid, 2.0, 1483.9629,-1749.7958,15.4453)) {
   
        new pStr[58];
        format(pStr, 58, "{FFFFFF}Atualmente estamos com R$%d Arrecadados", SBizzInfo[23][targetid][sbTill]);
        Controle(playerid, 0);
        ShowPlayerDialog(playerid, 5053, DIALOG_STYLE_MSGBOX, "Impostometro de Los Santos", pStr , "Fechar", "");
    }
    return true;
}
Errei o nome da funзгo!


Re: ajuda com emp + dialogo - FPB_Lipos - 17.03.2013

Quote:
Originally Posted by Programador_Macabro
Посмотреть сообщение
pawn Код:
if(!strcmp("/consultarimpostometro", cmdtext, true)) {

    if (IsPlayerInRangeOfPoint(playerid, 2.0, 1483.9629,-1749.7958,15.4453)) {
   
        new pStr[58];
        format(pStr, 58, "{FFFFFF}Atualmente estamos com R$%d Arrecadados", SBizzInfo[23][targetid][sbTill]);
        Controle(playerid, 0);
        ShowPlayerDialog(playerid, 5053, DIALOG_STYLE_MSGBOX, "Impostometro de Los Santos", pStr , "Fechar", "");
    }
    return true;
}
Errei o nome da funзгo!
Continua os erros:

Код:
C:\Users\Felipe\Desktop\GTA\gamemodes\BML.pwn(17542) : error 017: undefined symbol "targetid"
C:\Users\Felipe\Desktop\GTA\gamemodes\BML.pwn(17542) : error 029: invalid expression, assumed zero
C:\Users\Felipe\Desktop\GTA\gamemodes\BML.pwn(17542) : warning 215: expression has no effect
C:\Users\Felipe\Desktop\GTA\gamemodes\BML.pwn(17542) : error 001: expected token: ";", but found "]"
C:\Users\Felipe\Desktop\GTA\gamemodes\BML.pwn(17542) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.



Respuesta: ajuda com emp + dialogo - Parka - 17.03.2013

pawn Код:
if(!strcmp("/consultarimpostometro", cmdtext, true))
    {
        if (PlayerToPoint(2.0, playerid, 1483.9629,-1749.7958,15.4453))
        {
        Controle(playerid, 0);
        new str[128];
        format(str, sizeof str, "{FFFFFF}Atualmente estamos com R$%d Arrecadados", SBizzInfo[23][playerid][sbTill]);
        ShowPlayerDialog(playerid, 5053, DIALOG_STYLE_MSGBOX, "Impostometro de Los Santos", str, "Ok", "Fechar");
        }
        return true;
    }



Re: Respuesta: ajuda com emp + dialogo - FPB_Lipos - 17.03.2013

Quote:
Originally Posted by cesar_******
Посмотреть сообщение
pawn Код:
if(!strcmp("/consultarimpostometro", cmdtext, true))
    {
        if (PlayerToPoint(2.0, playerid, 1483.9629,-1749.7958,15.4453))
        {
        Controle(playerid, 0);
        new str[128];
        format(str, sizeof str, "{FFFFFF}Atualmente estamos com R$%d Arrecadados", SBizzInfo[23][playerid][sbTill]);
        ShowPlayerDialog(playerid, 5053, DIALOG_STYLE_MSGBOX, "Impostometro de Los Santos", str, "Ok", "Fechar");
        }
        return true;
    }
Erros + Avisos
Код:
C:\Users\Felipe\Desktop\GTA\gamemodes\BML.pwn(17543) : warning 213: tag mismatch
C:\Users\Felipe\Desktop\GTA\gamemodes\BML.pwn(17543) : error 001: expected token: ",", but found "["
C:\Users\Felipe\Desktop\GTA\gamemodes\BML.pwn(17543) : error 029: invalid expression, assumed zero
C:\Users\Felipe\Desktop\GTA\gamemodes\BML.pwn(17543) : warning 215: expression has no effect
C:\Users\Felipe\Desktop\GTA\gamemodes\BML.pwn(17543) : error 001: expected token: ";", but found "]"
C:\Users\Felipe\Desktop\GTA\gamemodes\BML.pwn(17543) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.



Re: ajuda com emp + dialogo - Gii - 17.03.2013

Quote:
Originally Posted by FPB_Lipos
Посмотреть сообщение
Continua os erros:

Код:
C:\Users\Felipe\Desktop\GTA\gamemodes\BML.pwn(17542) : error 017: undefined symbol "targetid"
C:\Users\Felipe\Desktop\GTA\gamemodes\BML.pwn(17542) : error 029: invalid expression, assumed zero
C:\Users\Felipe\Desktop\GTA\gamemodes\BML.pwn(17542) : warning 215: expression has no effect
C:\Users\Felipe\Desktop\GTA\gamemodes\BML.pwn(17542) : error 001: expected token: ";", but found "]"
C:\Users\Felipe\Desktop\GTA\gamemodes\BML.pwn(17542) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Ai o erro esta na matriz que vocк usa em seu comando.
pawn Код:
SBizzInfo[23][targetid][sbTill]
Nгo seria.

pawn Код:
SBizzInfo[23][sbTill]