[Ajuda] Erro /Pintar
#1

Tou com um problema no comando /pintar ao compilar.

pawn Код:
new.pwn(1061) : error 001: expected token: ";", but found "-identifier-"
new.pwn(1061) : error 017: undefined symbol "s"
new.pwn(1061) : warning 215: expression has no effect
new.pwn(1061) : error 001: expected token: ";", but found "]"
new.pwn(1061) : fatal error 107: too many error messages on one line


command(pintar,playerid, params[])
{
    new
    cor1,
    cor2,
    idcarro
linha ---1061 s[256];
    ;
    idcarro = GetPlayerVehicleID(playerid);
    tmp = strtok(cmd,idx);
    if(!strlen(tmp))
    {
        SendClientMessage(playerid, 0xFFFFFFAA, "* Uso: /pintar [cor1] [cor2]");
        return 1;
    }
    cor1 = strval(tmp);
    tmp = strtok(cmd,idx);
    if(!strlen(tmp))
    {
        SendClientMessage(playerid, 0xFFFFFFAA, "* Uso: /pintar [cor1] [cor2]");
        return 1;
    }
    if(IsPlayerInAnyVehicle(playerid))
    {
        cor2 = strval(tmp);
        ChangeVehicleColor(idcarro, cor1, cor2);
        format(s, sizeof(s), "* Cores alteradas cor1: %d e cor2: %d.", cor1, cor2);
        SendClientMessage(playerid, 0xFFFFFFAA, s);
    }
    else
    {
        SendClientMessage(playerid, 0xFFFFFFAA, "* Vocк nгo estб em um veнculo !");
    }
    return 1;
}
Reply


Messages In This Thread
Erro /Pintar - by Ts3 - 06.07.2014, 20:54
Re: Erro /Pintar - by SkullFire - 06.07.2014, 21:10
Re: Erro /Pintar - by Ts3 - 06.07.2014, 21:12
Re: Erro /Pintar - by MultiKill - 06.07.2014, 21:13
Re: Erro /Pintar - by DiiMeNoR - 06.07.2014, 21:13
Re: Erro /Pintar - by Ts3 - 06.07.2014, 21:22

Forum Jump:


Users browsing this thread: 1 Guest(s)