SA-MP Forums Archive
[AJUDA] comandos no carro - 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] comandos no carro (/showthread.php?tid=334254)



[AJUDA] comandos no carro - DreyPT - 14.04.2012

Boas pessoal !

Eu tenho um problema no meu gamemode.

Nгo consigo fazer nenhum comando, que publics tenho de colocar aqui para me ajudarem ?

Cumpz


Re: [AJUDA] comandos no carro - Delete_ - 14.04.2012

public OnPlayerCommandText


Re: [AJUDA] comandos no carro - DreyPT - 14.04.2012

delete й muita coisa...


Re: [AJUDA] comandos no carro - Delete_ - 14.04.2012

Nenhum comando funciona?

Poste o inicio e o fim da public


Re: [AJUDA] comandos no carro - 4LiSs0N - 14.04.2012

Voce usa ZCMD?


Re: [AJUDA] comandos no carro - DreyPT - 14.04.2012

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    new string[256];
    new cmd[256];
    new idx;
    cmd = strtok(cmdtext, idx);
    new tmp[256];
    new giveplayerid;
    if(gPlayerLogged[playerid] == 1)
    {
pawn Код:
}
        if(strcmp(cmd, "/horas", true) == 0)
        {
            if(IsPlayerConnected(playerid))
            {
                if(PlayerInfo[playerid][pRelogio] == 1)
                {
                    new mtext[20],year,month,day,hour,minutes,seconds;
                    getdate(year, month, day), gettime(hour, minutes, seconds);
                    if(month == 1) { mtext = "Janeiro"; }
                    else if(month == 2) { mtext = "Fevereiro"; }
                    else if(month == 3) { mtext = "Marзo"; }
                    else if(month == 4) { mtext = "Abril"; }
                    else if(month == 5) { mtext = "Maio"; }
                    else if(month == 6) { mtext = "Junho"; }
                    else if(month == 7) { mtext = "Julho"; }
                    else if(month == 8) { mtext = "Agosto"; }
                    else if(month == 9) { mtext = "Setembro"; }
                    else if(month == 10) { mtext = "Outobro"; }
                    else if(month == 11) { mtext = "Novembro"; }
                    else if(month == 12) { mtext = "Decembro"; }

                    format(string, sizeof(string), "~y~%d %s~n~~g~|~w~%s%d:%s%d:%s%d~g~|", day, mtext, (hour<10)?("0"):(""),hour,(minutes<10)?("0"):(""),minutes,(seconds<10)?("0"):(""),seconds);
                    GameTextForPlayer(playerid, string, 5000, 1);
                }
            }
            return 1;
        }
    }
    else
    {
        SendClientMessage(playerid,COLOR_RED,"[ERRO:] Nao estas logado, por isso nao poderas usar nenhum comando.");
        SendClientMessage(playerid,COLOR_RED,"[ERRO:] Digita a tua password para registar/login.");
        return 1;
    }
    SendClientMessage(playerid,COLOR_RED,"Comando invalido digita /Comandos para veres a lista.");
    return 1;
}



Re: [AJUDA] comandos no carro - Delete_ - 14.04.2012

Nenhum comando funciona? ou apenas os comandos dos carros?


Re: [AJUDA] comandos no carro - BreakDriFT - 14.04.2012

Coloca:
pawn Код:
SendClientMessage(playerid,COLOR_RED,"Comando invalido digita /Comandos para veres a lista.");
    return 0;
}



Re: [AJUDA] comandos no carro - DreyPT - 14.04.2012

apenas os comandos dos carros..


Re: [AJUDA] comandos no carro - BreakDriFT - 14.04.2012

Intгo posta os comandos dos carros ...
e coloca return 0 onde falei e NoFinal podes Fazer isso:


Ops errei