[Ajuda] /status em DIALOG
#1

Quero colocar o /status em forma de dialog, alguem poderia transforma-lo?

Code:

if(strcmp("/status", cmd, true) == 0)
{
new plid;

if(sscanf(cmdtext, "s[8]u", cmd, plid))
{
SendClientMessage(playerid, COLOR_GREEN, "Use /status [id]");
return 1;
}
if(IsPlayerConnected(plid))
{
new string222[512];

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

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

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

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

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

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

format(string, sizeof(string), "{00BFFF}» Dias Vip: %d", GetVIPDays(plid));
SendClientMessage(playerid, -1, string);

SendClientMessage(playerid, -1, string222);

format(string, sizeof(string), "%s estб vendo seu status. ( /status )", GetPlayerNameEx(playerid));
SendClientMessage(plid, COLOR_GREEN, string);
}
else
{
SendClientMessage(playerid, Vermelho, "Valor invбlido, tente novamente!");
}
return 1;
}
Reply
#2

Trago-lhe conhecimento!

https://sampforum.blast.hk/showthread.php?tid=571736
Reply
#3

PHP Code:
if(strcmp("/status"cmdtrue) == 0)
{
    new 
plid;
    if(
sscanf(cmdtext"s[8]u"cmdplid))
    {
        
SendClientMessage(playeridCOLOR_GREEN"Use /status [id]");
        return 
1;
    }
    if(
IsPlayerConnected(plid))
    {
        new 
string222[512],a[600];
        
format(string222sizeof(string222), "......:::::: - %s: [ID: %d] - ::::::....."GetPlayerNameEx(plid), plid);
        
strcat(a,string);
        
format(stringsizeof(string), "{CCFF00}» EXP: %d/%d {CCFF00}» Grana na Mгo: $%d"PlayerInfo[plid][_EXP], MAX_PLAYER_EXPGetPlayerGrana(plid));
        
strcat(a,string)
        
format(stringsizeof(string), "{00BFFF}» Level: %d/%d {00BFFF}» Saldo Bancбrio: $%d"PlayerInfo[plid][_Level], MAX_PLAYER_LEVELPlayerInfo[plid][_SaldoBancario]);
        
strcat(a,string)
        
format(stringsizeof(string), "{CCFF00}» Estudo: %d/%d {CCFF00}» Casou Com: %s"PlayerInfo[plid][_Faculdade], MAX_PLAYER_ESTUDOPlayerInfo[plid][_CasouCom]);
        
strcat(a,string)
        
format(stringsizeof(string), "{00BFFF}» Profissгo ID: %d {00BFFF}» Skin ID: %d"PlayerInfo[plid][_Profissao], PlayerInfo[plid][_Skin]);
        
strcat(a,string)
        
format(stringsizeof(string), "{CCFF00}» Matou: %d {CCFF00}» Morreu: %d"matou[plid], morreu[plid]);
        
strcat(a,string)
        
format(stringsizeof(string), "{00BFFF}» Dias Vip: %d"GetVIPDays(plid));
        
strcat(a,string)
        
ShowPlayerDialog(playeridDIALOGIDDIALOG_STYLE_MSGBOX"Status"strcat(a,string), "OK",#);
        
format(stringsizeof(string), "%s estб vendo seu status. ( /status )"GetPlayerNameEx(playerid));
        
SendClientMessage(plidCOLOR_GREENstring);
    }
    else return 
SendClientMessage(playeridVermelho"Valor invбlido, tente novamente!");
    return 
1;

Reply
#4

E:\sv\[013z] BRASIL PERFECT STYLE 7.0\gamemodes\BPS.pwn(16491) : error 017: undefined symbol "DIALOGID"

Deu esse erro
Reply
#5

Quote:
Originally Posted by lucas3366
View Post
E:\sv\[013z] BRASIL PERFECT STYLE 7.0\gamemodes\BPS.pwn(16491) : error 017: undefined symbol "DIALOGID"

Deu esse erro
Vocк tem que fazer uma define para o dialog tipo

#define DIALOG_STATUS 10

Ai troca esse "DIALOGID" por DIALOG_STATUS
Reply
#6

Deu o dobro de erro '-'
Reply
#7

quais erros ?, eu nгo compilei o codigo vou verificar-los.
Reply
#8

E:\sv\[013z] BRASIL PERFECT STYLE 7.0\gamemodes\BPS.pwn(16491) : error 017: undefined symbol "DIALOGID"
Reply
#9

olha cara, й preciso definir uma dialog no topo antes de usala

exemplo

PHP Code:
#define DIALOGID 1112 // ou #define [Dialog Nome]  [Dialog ID] 
obs: sempre no topo й claro.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)