SA-MP Forums Archive
[Ajuda] /avip - 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] /avip (/showthread.php?tid=340242)



[Ajuda] /avip - Panico622 - 06.05.2012

pawn Код:
else if(PlayerVip[playerid] == 1)
    {
        SendClientMessageToAll(0x00FF24FF, ":|======Anuncio VIP======|:");
        format(String,sizeof(String),"VIP %s: %s", pNome(playerid), Texto);
        SendClientMessageToAll(AZUL_CLARO, String);
    }
Porq nao Ta funcionando, sУ aparece assim:

======Anuncio VIP======|:
VIP [Nick]:

Mais nao ta aparecendo o Texto

Alguem me ajuda? Nao to conseguindo acha o erro.....


Re: [Ajuda] /avip - mau.tito - 06.05.2012

pawn Код:
else if(PlayerVip[playerid] == 1)
    {
        GetPlayerName(i, sendername, sizeof(sendername));
        SendClientMessageToAll(0x00FF24FF, ":|======Anuncio VIP======|:");
        format(String,sizeof(String),"VIP %s: %s", sendername , Texto);
        SendClientMessageToAll(AZUL_CLARO, String);
    }



Re: [Ajuda] /avip - Panico622 - 06.05.2012

Quote:
Originally Posted by mau.tito
Посмотреть сообщение
pawn Код:
else if(PlayerVip[playerid] == 1)
    {
        GetPlayerName(i, sendername, sizeof(sendername));
        SendClientMessageToAll(0x00FF24FF, ":|======Anuncio VIP======|:");
        format(String,sizeof(String),"VIP %s: %s", sendername , Texto);
        SendClientMessageToAll(AZUL_CLARO, String);
    }
O problema e Texto nao com o nome


Re: [Ajuda] /avip - mau.tito - 06.05.2012

Quote:
Originally Posted by Panico622
Посмотреть сообщение
O problema e Texto nao com o nome
Boiei LoL

@edit poste cmd inteiro



Re: [Ajuda] /avip - Panico622 - 06.05.2012

Fica Assim:


http://i.imgur.com/YGW0L.png



So o Texto nao aparece


Re: [Ajuda] /avip - Panico622 - 06.05.2012

Quote:
Originally Posted by mau.tito
Посмотреть сообщение
Boiei LoL

@edit poste cmd inteiro
pawn Код:
CMD:avip(playerid, params[])
{
    new Texto[128];
    if(PlayerVip[playerid] <= 0)
    {
        SendClientMessage(playerid, -1, "{FF0000}[Erro]{FFFFFF}Vc Nao й um Player Vip");
    }
    else if(PlayerVip[playerid] == 1)
    {
        SendClientMessageToAll(0x00FF24FF, ":|======Anuncio VIP======|:");
        format(String,sizeof(String),"VIP %s: %s", pNome(playerid), Texto);
        SendClientMessageToAll(AZUL_CLARO, String);
    }
    else if(PlayerVip[playerid] == 2)
    {
        if(sscanf(params, "s", Texto)) return SendClientMessage(playerid, COR_CINZA, "Use /avip [texto]");
        format(String, sizeof(String), "~y~S-Vip %s: ~w~%s", pNome(playerid), Texto);
        GameTextForAll(String, 5000, 4);
    }
    else if(PlayerVip[playerid] == 3)
    {
        if(sscanf(params, "s", Texto)) return SendClientMessage(playerid, COR_CINZA, "Use /avip [texto]");
        format(String, sizeof(String), "~y~Socio %s: ~w~%s", pNome(playerid), Texto);
        GameTextForAll(String, 5000, 4);
    }
    return 1;
}



Re: [Ajuda] /avip - Smith. - 06.05.2012

Tenta ai

pawn Код:
CMD:avip(playerid, params[])
{
    new Texto[128];
    if(PlayerVip[playerid] <= 0) return SendClientMessage(playerid, -1, "{FF0000}[Erro]{FFFFFF}Vc Nao й um Player Vip");
    if(sscanf(params, "s[128]", Texto)) return SendClientMessage(playerid, COR_CINZA, "Use /avip [texto]");
    if(PlayerVip[playerid] == 1)
    {
        SendClientMessageToAll(0x00FF24FF, ":|======Anuncio VIP======|:");
        format(String,sizeof(String),"VIP %s: %s", pNome(playerid), Texto);
        SendClientMessageToAll(AZUL_CLARO, String);
    }
    else if(PlayerVip[playerid] == 2)
    {
        format(String, sizeof(String), "~y~S-Vip %s: ~w~%s", pNome(playerid), Texto);
        GameTextForAll(String, 5000, 4);
    }
    else if(PlayerVip[playerid] == 3)
    {
        format(String, sizeof(String), "~y~Socio %s: ~w~%s", pNome(playerid), Texto);
        GameTextForAll(String, 5000, 4);
    }
    return 1;
}



Re: [Ajuda] /avip - CidadeNovaRP - 06.05.2012

Esqueceu do sscanf *-*
pawn Код:
CMD:avip(playerid, params[])
{
    new Texto[128];
    if(sscanf(params, "s", Texto)) return SendClientMessage(playerid, COR_ERRO, "USE: /avip [MENSAGEM]");
    if(PlayerVip[playerid] <= 0)
    {
        SendClientMessage(playerid, -1, "{FF0000}[Erro]{FFFFFF}Vc Nao й um Player Vip");
    }
    else if(PlayerVip[playerid] == 1)
    {
        SendClientMessageToAll(0x00FF24FF, ":|======Anuncio VIP======|:");
        format(String,sizeof(String),"VIP %s: %s", pNome(playerid), Texto);
        SendClientMessageToAll(AZUL_CLARO, String);
    }
    else if(PlayerVip[playerid] == 2)
    {
        format(String, sizeof(String), "~y~S-Vip %s: ~w~%s", pNome(playerid), Texto);
        GameTextForAll(String, 5000, 4);
    }
    else if(PlayerVip[playerid] == 3)
    {
        format(String, sizeof(String), "~y~Socio %s: ~w~%s", pNome(playerid), Texto);
        GameTextForAll(String, 5000, 4);
    }
    return 1;
}



Re: [Ajuda] /avip - Panico622 - 06.05.2012

Quote:
Originally Posted by CidadeNovaRP
Посмотреть сообщение
Esqueceu do sscanf *-*
pawn Код:
CMD:avip(playerid, params[])
{
    new Texto[128];
    if(sscanf(params, "s", Texto)) return SendClientMessage(playerid, COR_ERRO, "USE: /avip [MENSAGEM]");
    if(PlayerVip[playerid] <= 0)
    {
        SendClientMessage(playerid, -1, "{FF0000}[Erro]{FFFFFF}Vc Nao й um Player Vip");
    }
    else if(PlayerVip[playerid] == 1)
    {
        SendClientMessageToAll(0x00FF24FF, ":|======Anuncio VIP======|:");
        format(String,sizeof(String),"VIP %s: %s", pNome(playerid), Texto);
        SendClientMessageToAll(AZUL_CLARO, String);
    }
    else if(PlayerVip[playerid] == 2)
    {
        format(String, sizeof(String), "~y~S-Vip %s: ~w~%s", pNome(playerid), Texto);
        GameTextForAll(String, 5000, 4);
    }
    else if(PlayerVip[playerid] == 3)
    {
        format(String, sizeof(String), "~y~Socio %s: ~w~%s", pNome(playerid), Texto);
        GameTextForAll(String, 5000, 4);
    }
    return 1;
}
vlw.....


Re: [Ajuda] /avip - CidadeNovaRP - 06.05.2012

Quote:
Originally Posted by Panico622
Посмотреть сообщение
vlw.....
Nads .