[AJUDA] Ixii, q feio no ZCMD :/
#7

Quote:
Originally Posted by [O.z]Caroline
Посмотреть сообщение
pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
    if(!success)
    {
        format(string, sizeof(string), "{228B22}(ERRO) {FF0000}O comando {00FF00}%s {FF0000}й Invбlido!", cmdtext);
        return SendClientMessage(playerid, -1, string);
    }
    return 1;
}
aconselho desta forma, porque quando a public for chamada e o comando existir, darб erro run time.
Caroline, jб me foi ъtil o de BlueX, e lembrando que a return antes do SendClientMessage dб warning

Correto \/

pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
    if(!success)
    {
        format(string, sizeof(string), "{228B22}(ERRO) {FF0000}O comando {00FF00}%s {FF0000}й Invбlido!", cmdtext);
        SendClientMessage(playerid, -1, string);
    }
    return 1;
}
Reply


Messages In This Thread
[AJUDA] Ixii, q feio no ZCMD :/ - by Miqueias Barros - 01.11.2011, 02:21
Re: [AJUDA] Ixii, q feio no ZCMD :/ - by RebeloX - 01.11.2011, 02:27
Re: [AJUDA] Ixii, q feio no ZCMD :/ - by Miqueias Barros - 01.11.2011, 02:31
Re: [AJUDA] Ixii, q feio no ZCMD :/ - by RebeloX - 01.11.2011, 03:07
Re: [AJUDA] Ixii, q feio no ZCMD :/ - by [O.z]Caroline - 01.11.2011, 14:09
Re: [AJUDA] Ixii, q feio no ZCMD :/ - by RebeloX - 01.11.2011, 14:39
Re: [AJUDA] Ixii, q feio no ZCMD :/ - by Miqueias Barros - 01.11.2011, 17:44
Re: [AJUDA] Ixii, q feio no ZCMD :/ - by whiXґ - 01.11.2011, 17:57
Re: [AJUDA] Ixii, q feio no ZCMD :/ - by RebeloX - 01.11.2011, 18:04
Re: [AJUDA] Ixii, q feio no ZCMD :/ - by whiXґ - 01.11.2011, 18:05

Forum Jump:


Users browsing this thread: 2 Guest(s)