[Ajuda] Colocar em DIALOG
#1

Como faзo pra transformar em DIALOG_STYLE_MSGBOX ?

Code:

if(strcmp("/rg", cmd, true) == 0)
{
new string222[256];

format(string222, sizeof(string222), "......:::::: - %s: [ID: %d] - ::::::.....", GetPlayerNameEx(playerid), playerid);
SendClientMessage(playerid, -1, string222);

format(string, sizeof(string), "{CCFF00}» EXP: %d/%d {00BFFF}» Grana na Mгo: $%d", PlayerInfo[playerid][_EXP], MAX_PLAYER_EXP, GetPlayerGrana(playerid));
SendClientMessage(playerid, -1, string);

format(string, sizeof(string), "{00BFFF}» Level: %d/%d {00FF00}» Saldo Bancбrio: $%d", PlayerInfo[playerid][_Level], MAX_PLAYER_LEVEL, PlayerInfo[playerid][_SaldoBancario]);
SendClientMessage(playerid, -1, string);

format(string, sizeof(string), "{CCFF00}» Estudo: %d/%d {00BFFF}» Casou Com: %s", PlayerInfo[playerid][_Faculdade], MAX_PLAYER_ESTUDO, PlayerInfo[playerid][_CasouCom]);
SendClientMessage(playerid, -1, string);

format(string, sizeof(string), "{00BFFF}» Profissгo ID: %d {00FF00}» Skin ID: %d", PlayerInfo[playerid][_Profissao], PlayerInfo[playerid][_Skin]);
SendClientMessage(playerid, -1, string);

format(string, sizeof(string), "{CCFF00}» Matou: %d {00BFFF}» Morreu: %d", matou[playerid], morreu[playerid]);
SendClientMessage(playerid, -1, string);

SendClientMessage(playerid, -1, string222);
return 1;
}
Reply
#2

Quote:
Originally Posted by lucas3366
View Post
Como faзo pra transformar em DIALOG_STYLE_MSGBOX ?

Code:

if(strcmp("/rg", cmd, true) == 0)
{
new string222[256];

format(string222, sizeof(string222), "......:::::: - %s: [ID: %d] - ::::::.....", GetPlayerNameEx(playerid), playerid);
SendClientMessage(playerid, -1, string222);

format(string, sizeof(string), "{CCFF00}» EXP: %d/%d {00BFFF}» Grana na Mгo: $%d", PlayerInfo[playerid][_EXP], MAX_PLAYER_EXP, GetPlayerGrana(playerid));
SendClientMessage(playerid, -1, string);

format(string, sizeof(string), "{00BFFF}» Level: %d/%d {00FF00}» Saldo Bancбrio: $%d", PlayerInfo[playerid][_Level], MAX_PLAYER_LEVEL, PlayerInfo[playerid][_SaldoBancario]);
SendClientMessage(playerid, -1, string);

format(string, sizeof(string), "{CCFF00}» Estudo: %d/%d {00BFFF}» Casou Com: %s", PlayerInfo[playerid][_Faculdade], MAX_PLAYER_ESTUDO, PlayerInfo[playerid][_CasouCom]);
SendClientMessage(playerid, -1, string);

format(string, sizeof(string), "{00BFFF}» Profissгo ID: %d {00FF00}» Skin ID: %d", PlayerInfo[playerid][_Profissao], PlayerInfo[playerid][_Skin]);
SendClientMessage(playerid, -1, string);

format(string, sizeof(string), "{CCFF00}» Matou: %d {00BFFF}» Morreu: %d", matou[playerid], morreu[playerid]);
SendClientMessage(playerid, -1, string);

SendClientMessage(playerid, -1, string222);
return 1;
}
Code:
if(strcmp("/rg", cmd, true) == 0)
{
    new
	StatusInfo[1000],
	Info[400]
    ;
	
    format(Info, sizeof(Info), "{FFFFFF}......:::::: - %s: [ID: %d] - ::::::.....\n\n", , GetPlayerNameEx(playerid), playerid), strcat(StatusInfo, Info);
    format(Info, sizeof(Info), "{CCFF00}» EXP: %i/%i {00BFFF}» Grana na Mгo: R$ %i\n", PlayerInfo[playerid][_EXP], MAX_PLAYER_EXP, GetPlayerGrana(playerid)), strcat(StatusInfo, Info);
    format(Info, sizeof(Info), "{00BFFF}» Level: %i/%i {00FF00}» Saldo Bancбrio: R$ %i\n", PlayerInfo[playerid][_Level], MAX_PLAYER_LEVEL, PlayerInfo[playerid][_SaldoBancario]), strcat(StatusInfo, Info);
    format(Info, sizeof(Info), "{CCFF00}» Estudo: %i/%i {00BFFF}» Casou Com: %s\n", PlayerInfo[playerid][_Faculdade], MAX_PLAYER_ESTUDO, PlayerInfo[playerid][_CasouCom]), strcat(StatusInfo, Info);
    format(Info, sizeof(Info), "{00BFFF}» Profissгo ID: %i {00FF00}» Skin ID: %i\n", PlayerInfo[playerid][_Profissao], PlayerInfo[playerid][_Skin]), strcat(StatusInfo, Info);
    format(Info, sizeof(Info), "{CCFF00}» Matou: %i {00BFFF}» Morreu: %i", matou[playerid], morreu[playerid]), strcat(StatusInfo, Info);
    ShowPlayerDialog(playerid, 444, DIALOG_STYLE_MSGBOX, "RG", StatusInfo, "Fechar", #);
    return true;
}
Reply
#3

E:\sv\[013z] BRASIL PERFECT STYLE 7.0\gamemodes\BPS.pwn(1643 : error 029: invalid expression, assumed zero
E:\sv\[013z] BRASIL PERFECT STYLE 7.0\gamemodes\BPS.pwn(1643 : warning 215: expression has no effect
E:\sv\[013z] BRASIL PERFECT STYLE 7.0\gamemodes\BPS.pwn(1643 : error 001: expected token: ";", but found ")"
E:\sv\[013z] BRASIL PERFECT STYLE 7.0\gamemodes\BPS.pwn(1643 : error 029: invalid expression, assumed zero
E:\sv\[013z] BRASIL PERFECT STYLE 7.0\gamemodes\BPS.pwn(1643 : fatal error 107: too many error messages on one lin

16438 й a linha do warning::

format(Info, sizeof(Info), "{FFFFFF}......:::::: - %s: [ID: %d] - ::::::.....\n\n", , GetPlayerNameEx(playerid), playerid), strcat(StatusInfo, Info);
Reply
#4

Ninguйm pra continuar ajudando?
Reply
#5

Code:
format(Info, sizeof(Info), "{FFFFFF}......:::::: - %s: [ID: %d] - ::::::.....\n\n", , GetPlayerNameEx(playerid), playerid), strcat(StatusInfo, Info);
Tira aquela vнrgula antes do GetPlayerNameEx
Code:
format(Info, sizeof(Info), "{FFFFFF}......:::::: - %s: [ID: %d] - ::::::.....\n\n", GetPlayerNameEx(playerid), playerid), strcat(StatusInfo, Info);
Reply
#6

Deu Certo? Verifica se as variaveis da dten q vc ta usando ta certo com o que o manin postou acima

Reply
#7

Compila, porйm quando entra no game e digito /rg aparece isso

Server Unkdown Command
Reply
#8

Quote:
Originally Posted by lucas3366
View Post
Compila, porйm quando entra no game e digito /rg aparece isso

Server Unkdown Command
Tente agora!
Code:
if(strcmp(cmd, "/rg", true) == 0)
{
    new
	StatusInfo[1000],
	Info[400]
    ;

    format(Info, sizeof(Info), "{FFFFFF}......:::::: - %s: [ID: %d] - ::::::.....\n\n", GetPlayerNameEx(playerid), playerid), strcat(StatusInfo, Info);
    format(Info, sizeof(Info), "{CCFF00}» EXP: %i/%i {00BFFF}» Grana na Mгo: R$ %i\n", PlayerInfo[playerid][_EXP], MAX_PLAYER_EXP, GetPlayerGrana(playerid)), strcat(StatusInfo, Info);
    format(Info, sizeof(Info), "{00BFFF}» Level: %i/%i {00FF00}» Saldo Bancбrio: R$ %i\n", PlayerInfo[playerid][_Level], MAX_PLAYER_LEVEL, PlayerInfo[playerid][_SaldoBancario]), strcat(StatusInfo, Info);
    format(Info, sizeof(Info), "{CCFF00}» Estudo: %i/%i {00BFFF}» Casou Com: %s\n", PlayerInfo[playerid][_Faculdade], MAX_PLAYER_ESTUDO, PlayerInfo[playerid][_CasouCom]), strcat(StatusInfo, Info);
    format(Info, sizeof(Info), "{00BFFF}» Profissгo ID: %i {00FF00}» Skin ID: %i\n", PlayerInfo[playerid][_Profissao], PlayerInfo[playerid][_Skin]), strcat(StatusInfo, Info);
    format(Info, sizeof(Info), "{CCFF00}» Matou: %i {00BFFF}» Morreu: %i", matou[playerid], morreu[playerid]), strcat(StatusInfo, Info);
    ShowPlayerDialog(playerid, 444, DIALOG_STYLE_MSGBOX, "RG", StatusInfo, "Fechar", #);
    return true;
}
Reply
#9

Mesmo problema ainda mano
Reply
#10

Se deu unkow command e pq vc nao retornou o comando coloque

" return 1; "
}
Reply
#11

Jб coloquei, mas ainda continua a mesma coisa!
Reply
#12

Eu digito /rg in-game dб esse SERVER: Unkown Command
Reply
#13

Muito Obrigado a todos, deu certo.

Code funcional :
Reply
#14

Quote:
Originally Posted by HelderPT
View Post
Se deu unkow command e pq vc nao retornou o comando coloque

" return 1; "
}
Qual a diferencia de um nome pra um number

Code:
true = 1 // Verdadeiro
false = 0 // Falso
Estou errado
Reply
#15

Quote:
Originally Posted by lucas3366
View Post
Muito Obrigado a todos, deu certo.

Code funcional :
Entгo fala como vocк arrumou pra ajudar outros e atй mim eu que tem queRO. .
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)