[Ajuda] /Veiculo cor bug
#2

Veja se funciona ai..

pawn Код:
if(!strcmp(cmdtext, "/corveh", true)){
    {
     
        new tmp[24], idx; tmp = strtok(params, idx);
        if(!strlen(tmp)) return SendClientMessage(playerid, cordesejada, "USE: /corveh [color id 1] [color id 2]");
        new color1 = strval(tmp);
        if(color1 < 0 || color1 > 300) return SendClientMessage(playerid, cordesejada, "Use de 0/300.");
        CarColor[playerid][0] = color1;
        new color2;
               tmp = strtok(params, idx);
        if(!strlen(tmp)) color2 = color1;
        else color2 = strval(tmp);
        if(color2 < 0 || color2 > 300) return SendClientMessage(playerid, cordesejada, "Use de 0/300.");
        CarColor[playerid][1] = color2;
        ChangeVehicleColor(GetPlayerVehicleID(playerid), color1, color2);
        return 1;
    }
Reply


Messages In This Thread
[Ajuda] /Veiculo cor bug - by Leo_Lost - 23.12.2011, 15:11
Re: [Ajuda] /Veiculo cor bug - by Sampizito - 23.12.2011, 22:44
Re: [Ajuda] /Veiculo cor bug - by Leo_Lost - 23.12.2011, 23:34
Re: [Ajuda] /Veiculo cor bug - by Sampizito - 23.12.2011, 23:41
Re: [Ajuda] /Veiculo cor bug - by Leo_Lost - 24.12.2011, 13:16
Re: [Ajuda] /Veiculo cor bug - by Leo_Lost - 26.12.2011, 15:58

Forum Jump:


Users browsing this thread: 1 Guest(s)