02.12.2018, 17:16
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:
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);
Код:
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(gstring, sizeof gstring, "{4B8DE3}** RG de {D5DFED}%s {4B8DE3}**\n\n",PlayerName(targetid));
strcat(MEGAString,gstring);
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);
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}[%d] Safe Cocaina:{D5DFED}[%d] Safe 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);