[Ajuda] Erro na RG em dialog com Srtcat
#1

Olб, tentei criar um rg em dialog, porque o meu era em chat, mais ele sу fica uma parte em dialog, a outra fica no chat, gostaria que arrumassem esse cуdigo pra mim.

PHP код:
        new RulesBox[2000];
        new 
Strcat[700]
        
format(gstringsizeof(gstring),"** RG de %s **",PlayerName(targetid));
        
format(RulesBoxsizeof(RulesBox),"%s\n%s\n",RulesBox);
        
strcat(Strcat, (Str));
        
format(RulesBoxsizeof(RulesBox), "%s\nNн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);
        
strcat(Strcat, (Str));
        
format(RulesBoxsizeof(RulesBox), "%s\nConta:[%s] Casado Com:[%s] Horas Jogadas:[%d] Emprego:[%s]"drank,married,PlayerInfo[targetid][pConnectTime],jtext);
        
strcat(Strcat, (Str));
        
format(RulesBoxsizeof(RulesBox), "%s\nCrimes Cometidos:[%d] Matou:[%d] Morreu:[%d] Loteria:[%d] Cidade:[Los Santos] Vida:[%.1f]"crimes,kills,deaths,lottoshealth);
        
strcat(Strcat, (Str));
        
format(RulesBoxsizeof(RulesBox), "%s\nPrуximo Nнvel:[R$%d] Respeito:[%d/%d] Doenзas:[%s] Nнvel de Procura:[%d] Tempo Concessionбria [%d/20]",costlevel,exp,expquantidade,dtextWantedchoras);
        
strcat(Strcat, (Str));
        
format(RulesBoxsizeof(RulesBox), "%s\nMateriais:[%d] Safe Materiais:[%d] Organizaзгo:[%s] Cargo:[%s] Email:[%s]",mats,smats,NomeORG(targetid),GetPlayerCargo(targetid), PlayerInfo[targetid][pEmail]);
        
strcat(Strcat, (Str));
        if (
PlayerInfo[playerid][pAdmin] >= || PlayerInfo[playerid][pAdminTemp] >= 1)
        
format(RulesBoxsizeof(RulesBox), "%s\nSementes:[%d] Maconha:[%d] Cocaina:[%d] Crack:[%d] Safe Maconha:[%d] Safe Cocaina:[%d] Safe Crack:[%d]",PlayerInfo[targetid][pSementes],Drogas,Drogas2,Drogas3,SafeDrogas,SafeDrogas2,SafeDrogas3);
        
strcat(Strcat, (Str));
        if (
PlayerInfo[playerid][pAdmin] >= || PlayerInfo[playerid][pAdminTemp] >= 1)
        
format(RulesBoxsizeof(RulesBox), "%s\nExplosivos:[%d] Cigarros:[%d] Galгo de Gasolina:[%s] Isqueiro:[%s] Patins:[%s] Rбdio:[%s]",PlayerInfo[targetid][pExplosivos], PlayerInfo[targetid][pCigarros], galaoIsqueiroppatinsradiop);
        
strcat(Strcat, (Str));
        if (
PlayerInfo[playerid][pAdmin] >= || PlayerInfo[playerid][pAdminTemp] >= 1)
        {
            
format(gstringsizeof(gstring), "Chave Casa: [%d] Chave Empresa: [%d] Chave Fazenda: [%d] Chave do Carro: [%d] Interior:[%d] Local:[%d]"housekey,bizkey,fazkey,HireCar[targetid],intir,local);
            
SendClientMessage(playeridCOLOR_RG,gstring);
            
format(gstringsizeof(gstring), "Veнculo VIP(1): [%d] Veнculo VIP(2): [%d] Veнculo VIP(3): [%d] Veнculo VIP(4): [%d] Veнculo VIP(5): [%d]"carro,carro2,carro3,carro4,carro5);
            
SendClientMessage(playeridCOLOR_RG,gstring);
        }
        
ShowPlayerDialog(playeridDIALOG_INFODIALOG_STYLE_MSGBOX"Documentos"RulesBox"Fechar""");
    }
    return 
true;



Eles dгo erro no pawn vejam sу:

Код:
 error 017: undefined symbol "Str"
expected token: ";", but found "-identifier-"
Reply
#2

Quote:
Originally Posted by Ir123
Посмотреть сообщение
Olб, tentei criar um rg em dialog, porque o meu era em chat, mais ele sу fica uma parte em dialog, a outra fica no chat, gostaria que arrumassem esse cуdigo pra mim.

PHP код:
        new RulesBox[2000];
        new 
Strcat[700]
        
format(gstringsizeof(gstring),"** RG de %s **",PlayerName(targetid));
        
format(RulesBoxsizeof(RulesBox),"%s\n%s\n",RulesBox);
        
strcat(Strcat, (Str));
        
format(RulesBoxsizeof(RulesBox), "%s\nNн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);
        
strcat(Strcat, (Str));
        
format(RulesBoxsizeof(RulesBox), "%s\nConta:[%s] Casado Com:[%s] Horas Jogadas:[%d] Emprego:[%s]"drank,married,PlayerInfo[targetid][pConnectTime],jtext);
        
strcat(Strcat, (Str));
        
format(RulesBoxsizeof(RulesBox), "%s\nCrimes Cometidos:[%d] Matou:[%d] Morreu:[%d] Loteria:[%d] Cidade:[Los Santos] Vida:[%.1f]"crimes,kills,deaths,lottoshealth);
        
strcat(Strcat, (Str));
        
format(RulesBoxsizeof(RulesBox), "%s\nPrуximo Nнvel:[R$%d] Respeito:[%d/%d] Doenзas:[%s] Nнvel de Procura:[%d] Tempo Concessionбria [%d/20]",costlevel,exp,expquantidade,dtextWantedchoras);
        
strcat(Strcat, (Str));
        
format(RulesBoxsizeof(RulesBox), "%s\nMateriais:[%d] Safe Materiais:[%d] Organizaзгo:[%s] Cargo:[%s] Email:[%s]",mats,smats,NomeORG(targetid),GetPlayerCargo(targetid), PlayerInfo[targetid][pEmail]);
        
strcat(Strcat, (Str));
        if (
PlayerInfo[playerid][pAdmin] >= || PlayerInfo[playerid][pAdminTemp] >= 1)
        
format(RulesBoxsizeof(RulesBox), "%s\nSementes:[%d] Maconha:[%d] Cocaina:[%d] Crack:[%d] Safe Maconha:[%d] Safe Cocaina:[%d] Safe Crack:[%d]",PlayerInfo[targetid][pSementes],Drogas,Drogas2,Drogas3,SafeDrogas,SafeDrogas2,SafeDrogas3);
        
strcat(Strcat, (Str));
        if (
PlayerInfo[playerid][pAdmin] >= || PlayerInfo[playerid][pAdminTemp] >= 1)
        
format(RulesBoxsizeof(RulesBox), "%s\nExplosivos:[%d] Cigarros:[%d] Galгo de Gasolina:[%s] Isqueiro:[%s] Patins:[%s] Rбdio:[%s]",PlayerInfo[targetid][pExplosivos], PlayerInfo[targetid][pCigarros], galaoIsqueiroppatinsradiop);
        
strcat(Strcat, (Str));
        if (
PlayerInfo[playerid][pAdmin] >= || PlayerInfo[playerid][pAdminTemp] >= 1)
        {
            
format(gstringsizeof(gstring), "Chave Casa: [%d] Chave Empresa: [%d] Chave Fazenda: [%d] Chave do Carro: [%d] Interior:[%d] Local:[%d]"housekey,bizkey,fazkey,HireCar[targetid],intir,local);
            
SendClientMessage(playeridCOLOR_RG,gstring);
            
format(gstringsizeof(gstring), "Veнculo VIP(1): [%d] Veнculo VIP(2): [%d] Veнculo VIP(3): [%d] Veнculo VIP(4): [%d] Veнculo VIP(5): [%d]"carro,carro2,carro3,carro4,carro5);
            
SendClientMessage(playeridCOLOR_RG,gstring);
        }
        
ShowPlayerDialog(playeridDIALOG_INFODIALOG_STYLE_MSGBOX"Documentos"RulesBox"Fechar""");
    }
    return 
true;



Eles dгo erro no pawn vejam sу:

Код:
 error 017: undefined symbol "Str"
expected token: ";", but found "-identifier-"

Vocк esqueceu de usar ;


PHP код:
new RulesBox[2000]; 
        new 
Strcat[700]; //Nesse local vocк esqueceu de usar.
        
format(gstringsizeof(gstring),"** RG de %s **",PlayerName(targetid)); 
        
format(RulesBoxsizeof(RulesBox),"%s\n%s\n",RulesBox); 
        
strcat(Strcat, (Str)); 
        
format(RulesBoxsizeof(RulesBox), "%s\nNн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); 
        
strcat(Strcat, (Str)); 
        
format(RulesBoxsizeof(RulesBox), "%s\nConta:[%s] Casado Com:[%s] Horas Jogadas:[%d] Emprego:[%s]"drank,married,PlayerInfo[targetid][pConnectTime],jtext); 
        
strcat(Strcat, (Str)); 
        
format(RulesBoxsizeof(RulesBox), "%s\nCrimes Cometidos:[%d] Matou:[%d] Morreu:[%d] Loteria:[%d] Cidade:[Los Santos] Vida:[%.1f]"crimes,kills,deaths,lottoshealth); 
        
strcat(Strcat, (Str)); 
        
format(RulesBoxsizeof(RulesBox), "%s\nPrуximo Nнvel:[R$%d] Respeito:[%d/%d] Doenзas:[%s] Nнvel de Procura:[%d] Tempo Concessionбria [%d/20]",costlevel,exp,expquantidade,dtextWantedchoras); 
        
strcat(Strcat, (Str)); 
        
format(RulesBoxsizeof(RulesBox), "%s\nMateriais:[%d] Safe Materiais:[%d] Organizaзгo:[%s] Cargo:[%s] Email:[%s]",mats,smats,NomeORG(targetid),GetPlayerCargo(targetid), PlayerInfo[targetid][pEmail]); 
        
strcat(Strcat, (Str)); 
        if (
PlayerInfo[playerid][pAdmin] >= || PlayerInfo[playerid][pAdminTemp] >= 1
        
format(RulesBoxsizeof(RulesBox), "%s\nSementes:[%d] Maconha:[%d] Cocaina:[%d] Crack:[%d] Safe Maconha:[%d] Safe Cocaina:[%d] Safe Crack:[%d]",PlayerInfo[targetid][pSementes],Drogas,Drogas2,Drogas3,SafeDrogas,SafeDrogas2,SafeDrogas3); 
        
strcat(Strcat, (Str)); 
        if (
PlayerInfo[playerid][pAdmin] >= || PlayerInfo[playerid][pAdminTemp] >= 1
        
format(RulesBoxsizeof(RulesBox), "%s\nExplosivos:[%d] Cigarros:[%d] Galгo de Gasolina:[%s] Isqueiro:[%s] Patins:[%s] Rбdio:[%s]",PlayerInfo[targetid][pExplosivos], PlayerInfo[targetid][pCigarros], galaoIsqueiroppatinsradiop); 
        
strcat(Strcat, (Str)); 
        if (
PlayerInfo[playerid][pAdmin] >= || PlayerInfo[playerid][pAdminTemp] >= 1
        { 
            
format(gstringsizeof(gstring), "Chave Casa: [%d] Chave Empresa: [%d] Chave Fazenda: [%d] Chave do Carro: [%d] Interior:[%d] Local:[%d]"housekey,bizkey,fazkey,HireCar[targetid],intir,local); 
            
SendClientMessage(playeridCOLOR_RG,gstring); 
            
format(gstringsizeof(gstring), "Veнculo VIP(1): [%d] Veнculo VIP(2): [%d] Veнculo VIP(3): [%d] Veнculo VIP(4): [%d] Veнculo VIP(5): [%d]"carro,carro2,carro3,carro4,carro5); 
            
SendClientMessage(playeridCOLOR_RG,gstring); 
        } 
        
ShowPlayerDialog(playeridDIALOG_INFODIALOG_STYLE_MSGBOX"Documentos"RulesBox"Fechar"""); 
    } 
    return 
true

Reply
#3

Continua dando erro:

(33624) : error 017: undefined symbol "Str"
Reply
#4

Falta de atenзгo sua!

troca todos os
strcat(Strcat, (Str));
por esses
strcat(Strcat, RulesBox, sizeof(RulesBox));
Reply
#5

Continua dando o mesmo erro, parte da RG fica na tela e a outra no chat.
Reply
#6

Quote:
Originally Posted by Ir123
Посмотреть сообщение
Continua dando o mesmo erro, parte da RG fica na tela e a outra no chat.
Aqui meu amigo, testa ai
Se der algum erro me avise..

PHP код:
        new RulesBox[2000];
        new 
Strcat[700];
        
format(gstringsizeof(gstring),"** RG de %s **",PlayerName(targetid));
        
format(RulesBoxsizeof(RulesBox),"%s\n%s\n",RulesBox);
        
strcat(StrcatRulesBoxsizeof(RulesBox));
        
format(RulesBoxsizeof(RulesBox), "%s\nNн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);
        
strcat(StrcatRulesBoxsizeof(RulesBox));
        
format(RulesBoxsizeof(RulesBox), "%s\nConta:[%s] Casado Com:[%s] Horas Jogadas:[%d] Emprego:[%s]"drank,married,PlayerInfo[targetid][pConnectTime],jtext);
        
strcat(StrcatRulesBoxsizeof(RulesBox));
        
format(RulesBoxsizeof(RulesBox), "%s\nCrimes Cometidos:[%d] Matou:[%d] Morreu:[%d] Loteria:[%d] Cidade:[Los Santos] Vida:[%.1f]"crimes,kills,deaths,lottoshealth);
        
strcat(StrcatRulesBoxsizeof(RulesBox));
        
format(RulesBoxsizeof(RulesBox), "%s\nPrуximo Nнvel:[R$%d] Respeito:[%d/%d] Doenзas:[%s] Nнvel de Procura:[%d] Tempo Concessionбria [%d/20]",costlevel,exp,expquantidade,dtextWantedchoras);
        
strcat(StrcatRulesBoxsizeof(RulesBox));
        
format(RulesBoxsizeof(RulesBox), "%s\nMateriais:[%d] Safe Materiais:[%d] Organizaзгo:[%s] Cargo:[%s] Email:[%s]",mats,smats,NomeORG(targetid),GetPlayerCargo(targetid), PlayerInfo[targetid][pEmail]);
        
strcat(StrcatRulesBoxsizeof(RulesBox));
        if (
PlayerInfo[playerid][pAdmin] >= || PlayerInfo[playerid][pAdminTemp] >= 1)
        {
            
format(RulesBoxsizeof(RulesBox), "%s\nSementes:[%d] Maconha:[%d] Cocaina:[%d] Crack:[%d] Safe Maconha:[%d] Safe Cocaina:[%d] Safe Crack:[%d]",PlayerInfo[targetid][pSementes],Drogas,Drogas2,Drogas3,SafeDrogas,SafeDrogas2,SafeDrogas3);
            
strcat(StrcatRulesBoxsizeof(RulesBox));
            
format(RulesBoxsizeof(RulesBox), "%s\nExplosivos:[%d] Cigarros:[%d] Galгo de Gasolina:[%s] Isqueiro:[%s] Patins:[%s] Rбdio:[%s]",PlayerInfo[targetid][pExplosivos], PlayerInfo[targetid][pCigarros], galaoIsqueiroppatinsradiop);
            
strcat(StrcatRulesBoxsizeof(RulesBox));
            
format(RulesBoxsizeof(RulesBox), "Chave Casa: [%d] Chave Empresa: [%d] Chave Fazenda: [%d] Chave do Carro: [%d] Interior:[%d] Local:[%d]"housekey,bizkey,fazkey,HireCar[targetid],intir,local);
            
strcat(StrcatRulesBoxsizeof(RulesBox));
            
format(RulesBoxsizeof(RulesBox), "Veнculo VIP(1): [%d] Veнculo VIP(2): [%d] Veнculo VIP(3): [%d] Veнculo VIP(4): [%d] Veнculo VIP(5): [%d]"carro,carro2,carro3,carro4,carro5);
            
strcat(StrcatRulesBoxsizeof(RulesBox));
        }
        
ShowPlayerDialog(playeridDIALOG_INFODIALOG_STYLE_MSGBOX"Documentos"RulesBox"Fechar""");
    }
    return 
true;

Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)