[Ajuda] Erro na RG em dialog [3]
#1

Estou tentando fazer a minha RG que era em chat para dialog, tentei vбrias vezes, o pessoal do fуrum tentou me ajudar, mais continua bugando, entгo resolvi testar outro cуdigo, mais ele dб alguns erros simples, gostaria que me ajudassem a resolver esse erro:

Код:
C:\Users\PC\Videos\BPG\sd\\gamemodes\BPG.pwn(33610) : error 001: expected token: ",", but found "\"
C:\Users\PC\Videos\BPG\sd\\gamemodes\BPG.pwn(33610) : error 029: invalid expression, assumed zero
C:\Users\PC\Videos\BPG\sd\\gamemodes\BPG.pwn(33610) : error 017: undefined symbol "n"
C:\Users\PC\Videos\BPG\sd\\gamemodes\BPG.pwn(33610) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase
PHP код:
        MEGAString[0]=EOS;
        
format(gstringsizeof gstring"{4B8DE3}** RG de {D5DFED}%s {4B8DE3}**\n\n",PlayerName(targetid));
        
strcat(MEGAString,gstring);
        
        
format(gstringsizeof gstring"{4B8DE3}Nнvel:[%d] Idade:[%d] Sexo:[%s] Dinheiro:[R$%d] Banco:[R$%d] Ouros:[%d] Coins:[%d] Celular:[%d] "level,PlayerInfo[targetid][pAge],atextcashConta,PlayerInfo[targetid][pOuros],Casherpnumber\n",
         level,PlayerInfo[targetid][pAge],atext, ConvertMoney(Conta),PlayerInfo[targetid][pOuros],Casher);
        strcat(MEGAString,gstring);
        
         format(gstring, sizeof gstring, "
{4B8DE3}Conta:{D5DFED}[%s] {4B8DE3}Casado Com:{D5DFED}[%s] {4B8DE3}Horas Jogadas:{D5DFED}[%d] {4B8DE3}Emprego:{D5DFED}[%s] {4B8DE3}Celular:{D5DFED}[%d]\n",
        drank,married,PlayerInfo[targetid][pConnectTime],jtext, pnumber);
        strcat(MEGAString,gstring);
        format(gstring, sizeof gstring, "
{4B8DE3}Crimes Cometidos:{D5DFED}[%d] {4B8DE3}Matou:{D5DFED}[%d] {4B8DE3}Morreu:{D5DFED}[%d] {4B8DE3}Loteria:{D5DFED}[%d] {4B8DE3}Cidade:{D5DFED}[Los Santos] {4B8DE3}Vida:{D5DFED}[%.1f]\n",
         crimes,kills,deaths,lotto, shealth);
        strcat(MEGAString,gstring);
        format(gstring, sizeof gstring, "
{4B8DE3}Prуximo Nнvel:{D5DFED}[R$%s] {4B8DE3}Respeito:{D5DFED}[%d/%d] {4B8DE3}Doenзas:{D5DFED}[%s] {4B8DE3}Nнvel de Procura:{D5DFED}[%d] {4B8DE3}Tempo Concessionбria:{D5DFED}[%d/20]\n",
        ConvertMoney(costlevel),exp,expquantidade,dtext, Wanted, choras);
        strcat(MEGAString,gstring);
        format(gstring, sizeof gstring, "
{4B8DE3}Materiais:{D5DFED}[%d] {4B8DE3}Safe Materiais:{D5DFED}[%d] {4B8DE3}Organizaзгo:{D5DFED}[%s] {4B8DE3}Cargo:{D5DFED}[%s] {4B8DE3}Mochila:{D5DFED}[%s] {4B8DE3}Email:{D5DFED}[%s]\n",
        mats,smats,NomeORG(targetid),GetPlayerCargo(targetid), Moctext, PlayerInfo[targetid][pEmail]);
        strcat(MEGAString,gstring);
        format(gstring, sizeof gstring, "
{4B8DE3}Sementes:{D5DFED}[%d] {4B8DE3}Maconha:{D5DFED}[%d] {4B8DE3}Cocaina:{D5DFED}[%d] {4B8DE3}Crack:{D5DFED}[%d] {4B8DE3}Safe Maconha:{D5DFED}[%dSafe Cocaina:{D5DFED}[%dSafe Crack:{D5DFED}[%d]\n",
        PlayerInfo[targetid][pSementes],Drogas,Drogas2,Drogas3,SafeDrogas,SafeDrogas2,SafeDrogas3);
        strcat(MEGAString,gstring);
        format(gstring, sizeof gstring, "
{4B8DE3}Explosivos:{D5DFED}[%d] {4B8DE3}Cigarros:{D5DFED}[%d] {4B8DE3}Galгo de Gasolina:{D5DFED}[%s] {4B8DE3}Isqueiro:{D5DFED}[%s] {4B8DE3}Patins:{D5DFED}[%s] {4B8DE3}Rбdio:{D5DFED}[%s]\n\n",
        PlayerInfo[targetid][pExplosivos], PlayerInfo[targetid][pCigarros], galao, Isqueiro, ppatins, radiop);
        strcat(MEGAString,gstring);
        if (PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pAdminTemp] >= 1)
        {
            strcat(MEGAString,"
{4B8DE3}Admins sу veem:\n");
            format(gstring, sizeof gstring, "
{4B8DE3}Chave Casa:{D5DFED}[%d] {4B8DE3}Chave Empresa:{D5DFED}[%d] {4B8DE3}Chave Fazenda:{D5DFED}[%d] {4B8DE3}Chave do Carro:{D5DFED}[%d] {4B8DE3}Interior:{D5DFED}[%d] {4B8DE3}Local:{D5DFED}[%d]\n",
            housekey,bizkey,fazkey,HireCar[targetid],intir,local);
            strcat(MEGAString,gstring);
            format(gstring, sizeof gstring, "
{4B8DE3}Veнculo VIP(1):{D5DFED}[%d] {4B8DE3}Veнculo VIP(2):{D5DFED}[%d] {4B8DE3}Veнculo VIP(3):{D5DFED}[%d] {4B8DE3}Veнculo VIP(4):{D5DFED}[%d] {4B8DE3}Veнculo VIP(5):{D5DFED}[%d]\n",
            carro,carro2,carro3,carro4,carro5);
            strcat(MEGAString,gstring);
        }
        ShowPlayerDialog(playerid, 8724, DIALOG_STYLE_MSGBOX, "
RG", MEGAString, "Ok", "");
    }
    return true;



o erro й nessa linha: format(gstring, sizeof gstring, "{4B8DE3}Nнvel:[%d] Idade:[%d] Sexo:[%s] Dinheiro:[R$%d] Banco:[R$%d] Ouros:[%d] Coins:[%d] Celular:[%d] ", level,PlayerInfo[targetid][pAge],atext, cash, Conta,PlayerInfo[targetid][pOuros],Casher, pnumber\n",
level,PlayerInfo[targetid][pAge],atext, ConvertMoney(Conta),PlayerInfo[targetid][pOuros],Casher);
strcat(MEGAString,gstring);
Reply
#2

Amigo leia com atenзгo
C:\Users\PC\Videos\BPG\sd\\gamemodes\BPG.pwn(33610 ) : error 017: undefined symbol "n"
Код:
format(gstring, sizeof gstring, "{4B8DE3}Nнvel:[%d] Idade:[%d] Sexo:[%s] Dinheiro:[R$%d] Banco:[R$%d] Ouros:[%d] Coins:[%d] Celular:[%d] ", level,PlayerInfo[targetid][pAge],atext, cash, Conta,PlayerInfo[targetid][pOuros],Casher, pnumber", 
         level,PlayerInfo[targetid][pAge],atext, ConvertMoney(Conta),PlayerInfo[targetid][pOuros],Casher); 
        strcat(MEGAString,gstring);
Aonde tava o erro?

format(gstring, sizeof gstring, "{4B8DE3}Nнvel:[%d] Idade:[%d] Sexo:[%s] Dinheiro:[R$%d] Banco:[R$%d] Ouros:[%d] Coins:[%d] Celular:[%d] ", level,PlayerInfo[targetid][pAge],atext, cash, Conta,PlayerInfo[targetid][pOuros],Casher, pnumber\n",
level,PlayerInfo[targetid][pAge],atext, ConvertMoney(Conta),PlayerInfo[targetid][pOuros],Casher);
strcat(MEGAString,gstring);

й so apagar esse \n
Reply
#3

Continua dando erros:

(33610) : error 037: invalid string (possibly non-terminated string)
(33610) : warning 215: expression has no effect
(33610 -- 33611) : warning 215: expression has no effect
(33610 -- 33611) : warning 215: expression has no effect
(33610 -- 33611) : warning 215: expression has no effect
(33610 -- 33611) : error 017: undefined symbol "ConvertMoney"
(33611) : error 029: invalid expression, assumed zero
(33611) : fatal error 107: too many error messages on one line


e й na mesma linha.
Reply
#4

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

(33610) : error 037: invalid string (possibly non-terminated string)
(33610) : warning 215: expression has no effect
(33610 -- 33611) : warning 215: expression has no effect
(33610 -- 33611) : warning 215: expression has no effect
(33610 -- 33611) : warning 215: expression has no effect
(33610 -- 33611) : error 017: undefined symbol "ConvertMoney"
(33611) : error 029: invalid expression, assumed zero
(33611) : fatal error 107: too many error messages on one line


e й na mesma linha.
Nгo ta reconhecendo o codigo ConvertMoney

Leia os erros mano todas as suas postagem o erro ta na sua cara
Reply
#5

Vocк pode mandar as linhas enumeradas? fica mais facil de entender
Reply
#6

Eu consegui resolver quase todos os erros, sу restou um, esse aqui, й o erro da primeira linha que fecha com n,"), Idade, Nнvel, Sexo..

33610 -- 33612) : error 001: expected token: ",", but found "-identifier
Reply
#7

Quote:
Originally Posted by Ir123
Посмотреть сообщение
Eu consegui resolver quase todos os erros, sу restou um, esse aqui, й o erro da primeira linha que fecha com n,"), Idade, Nнvel, Sexo..

33610 -- 33612) : error 001: expected token: ",", but found "-identifier
Код:
format(gstring, sizeof gstring, "{4B8DE3}Nнvel:[%d] Idade:[%d] Sexo:[%s] Dinheiro:[R$%d] Banco:[R$%d] Ouros:[%d] Coins:[%d] Celular:[%d] ", level,PlayerInfo[targetid][pAge],atext, cash, Conta,PlayerInfo[targetid][pOuros],Casher, pnumber, 
         level,PlayerInfo[targetid][pAge],atext, ConvertMoney(Conta),PlayerInfo[targetid][pOuros],Casher); 
        strcat(MEGAString,gstring);
tenta
Reply
#8

~e o seu cуdigo nгo funcionou.
Reply
#9

eu jб te respondi no seu tуpico.
https://sampforum.blast.hk/showthread.php?tid=661344
Reply
#10

Eu disse acima que esse cуdigo NГO FUNCIONOU! eu criei esse ai de cima que й totalmente diferente e estб funcionando, mais estб dando esse erro.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)