Comando :\
#1

Oi Galera, to voltando ai com o pawn, e tava tentando criar um comando, em que o player pudesse iniciar uma corrda, e talz, mais deu mts erros, e realmente, nгo to conseguindo concerta-los .

se alguem poder me ajudar, ficarei muito grato mesmo.


Obs : esse cуdigo eu n copiei, fui fazendo, apenas algumas coisas eu tirei do meu antigo projeto .

pawn Код:
#include <a_samp>
#include <zcmd>

new timer, contagem = 15;

new IniciouC[MAX_PLAYERS];

CMD:iniciarcorrida(playerid)
{
    if(IniciouC[playerid] == 1)
    return SendClientMessage(playerid,-1, "Uma corrida jб foi iniciada !");

    if(!IsPlayerInAnyVehicle(playerid)) return  SendClientMessage(playerid, -1, "Vocк precisa de um carro para iniciar uma corrida !");
    if(IsPlayerInRangeOfPoint(playerid, 2.0, 2695.6880, -1704.6300, 11.8438))   return SendClientMessage(playerid, -1, "Vocк nгo pode iniciar uma corrida aqui !");

    new Nome[20], s[80];
    GetPlayerName(playerid, Nome, 20 );
    format(s, sizeof(s),"O Jogador {09D6E1}%s {FFFFFF}Iniciou uma Corrida !", Nome );
    SendClientMessageToAll(-1, s );

    timer = SetTimer("Contagem",1000,true);

    IniciouC[playerid] = 1;

    return 1;
}

forward Contagem();
public Contagem()
{
    contagem--;
    if(contagem > 0)
    {
        for(new i = 0, j = GetMaxPlayers(); i != j; i++)
        {
            new string[30];
            format(string,sizeof(string),"%i",contagem);
            GameTextForPlayer(i, contagem,1000,0);
        }
    }
    else
    {
        for(new i = 0, j = GetMaxPlayers(); i != j; i++)
        {
            GameTextForPlayer(i,"~g~ Acelera !",3000,0);
            KillTimer(timer);
        }
    }
    return true;
}

Erros :

pawn Код:
C:\Users\Lucas\Desktop\Corrida.pwn(38) : error 035: argument type mismatch (argument 2)
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase

1 Error.
Eu simplismente comeзei a fazer esse comando do 0 ! kkk parece que a lуgica ta boa, mais ta cheio de erros.

Espero q me ajudem !
Reply


Messages In This Thread
Comando :\ - by Lucas-Fc - 07.11.2012, 16:22
Re: Comando :\ - by Lucas-Fc - 07.11.2012, 16:26
Re: Comando :\ - by mau.tito - 07.11.2012, 16:33
Re: Comando :\ - by Nill.Oliveira - 07.11.2012, 16:36
Re: Comando :\ - by Lucas-Fc - 07.11.2012, 16:36
Re: Comando :\ - by Lucas-Fc - 07.11.2012, 16:41
Re: Comando :\ - by mau.tito - 07.11.2012, 16:42
Re: Comando :\ - by Lucas-Fc - 07.11.2012, 16:44
Re: Comando :\ - by mau.tito - 07.11.2012, 16:47
Re: Comando :\ - by Lucas-Fc - 07.11.2012, 16:51

Forum Jump:


Users browsing this thread: 1 Guest(s)