SA-MP Forums Archive
[AJUDA] Nгo consigo fazer nome aparecer no dialog - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [AJUDA] Nгo consigo fazer nome aparecer no dialog (/showthread.php?tid=207565)



[AJUDA] Nгo consigo fazer nome aparecer no dialog - Tomato_Atecubanos - 06.01.2011

if(strcmp(cmdtext,"/criarevento",true)==0)
{
if(EventoCriado == 1)
{
SendClientMessage(playerid,COLOR_GREY,"Um evento jб foi iniciado aguarde ele terminar");
return 1;
}
if(PlayerInfo[playerid][pAdmin] >= 1)
{
new eventos[256];
new CriadorEvento[MAX_PLAYER_NAME];
GetPlayerName(playerid, CriadorEvento, sizeof(CriadorEvento));
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Algum Administrador iniciou um evento");
GetPlayerPos(playerid,xxadmin,yyadmin,zzadmin);
adminint = GetPlayerInterior(playerid);
EventoCriado = 1;
for(new i=0; i<MAX_PLAYERS; i++)
{
format(eventos, sizeof(eventos),"Pelo Administrador %s\ne ele estб te chamando para partipar...\nGostaria de participar ?",eventos,CriadorEvento);
ShowPlayerDialog(i, 5424, DIALOG_STYLE_MSGBOX, "Evento Criado", eventos, "Sim", "Nгo");
}
return 1;
}
}
~
Nгo aparece de jeito nenhum quando digito o comando, tudo o que aparece й um quadradro branco, u_u'


Re: [AJUDA] Nгo consigo fazer nome aparecer no dialog - Domozinho - 06.01.2011

pawn Код:
format(eventos, sizeof eventos,"Pelo Administrador %s\ne ele estб te chamando para partipar...\nGostaria de participar ?", CriadorEvento);



Re: [AJUDA] Nгo consigo fazer nome aparecer no dialog - Tomato_Atecubanos - 06.01.2011

?


Respuesta: [AJUDA] Nгo consigo fazer nome aparecer no dialog - ipsBruno - 06.01.2011

pawn Код:
if(strcmp(cmdtext,"/criarevento",true)==0)
{
    if(EventoCriado == 1)
        returnSendClientMessage(playerid,COLOR_GREY,"Um evento jб foi iniciado aguarde ele terminar");

    if(PlayerInfo[playerid][pAdmin] >= 1)
    {
        new
            eventos[200],
            CriadorEvento[24]
        ;
        GetPlayerName(playerid, CriadorEvento,24);
        SendClientMessage(playerid, COLOR_LIGHTBLUE, "Algum Administrador iniciou um evento");
        GetPlayerPos(playerid,xxadmin,yyadmin,zzadmin);
        adminint = GetPlayerInterior(playerid);
        EventoCriado = 1;
        for(new i; i<MAX_PLAYERS; i++)
        {
            format(eventos, sizeof(eventos),"Pelo Administrador %s\ne ele estб te chamando para partipar...\nGostaria de participar ?",CriadorEvento);
            ShowPlayerDialog(i, 5424, DIALOG_STYLE_MSGBOX, "Evento Criado", eventos, "Sim", "Nгo");
        }
    }
    return true;
}



Re: [AJUDA] Nгo consigo fazer nome aparecer no dialog - jonas_gabriel - 06.01.2011

esse sistema ai eu fiz entгo ta ai o correto.
pawn Код:
if(strcmp(cmdtext,"/criarevento",true)==0)
{
if(EventoCriado == 1)
{
SendClientMessage(playerid,0xb9d26eff,"Um evento jб foi iniciado aguarde ele terminar");
return 1;
}
if(PlayerInfo[playerid][pAdmin] >= 1)
{
new Admin[MAX_PLAYER_NAME];
new eventos[256];
GetPlayerName(playerid,Admin,sizeof Admin);
printf("%s criou um Evento",Admin);
GetPlayerPos(playerid,xxadmin,yyadmin,zzadmin);
adminint = GetPlayerInterior(playerid);
EventoCriado = 1;
for(new i=0; i<MAX_PLAYERS; i++)
{
format(eventos, sizeof(eventos),"O Admin %s Criou um evento\nGostaria de participar ?",Admin);
ShowPlayerDialog(i,  5424, DIALOG_STYLE_MSGBOX, "Evento Criado", eventos, "Sim", "Nгo");
}
return 1;
}
}