[PEDIDO]/mudarcor [COR 1] [COR 2]
#4

Nгo, creio eu q vc use strcmp e strtok entao ai vai...
pawn Код:
if(strcmp(cmd, "/mudarcor", true) == 0)
{
    new cor1[3], cor2[3], idx; cor1 = strtok(cmdtext, idx); cor2 = strtok(cmdtext, idx);
    if(!strlen(cor1) || !strlen(cor2))
        return SendClientMessage(playerid, COR_CINZA, "USE /mudarcor [COR 1] [COR 2]");

    if(cor1 < 0 || cor1 > 300)
        return SendClientMessage(playerid, COR_VERMELHO, "Use de 0/300.");

    if(cor2 < 0 || cor2 > 300)
        return SendClientMessage(playerid, COR_VERMELHO, "Use de (0-300).");
       
    SendClientMessage(playerid, -1, "Info Vocк trocou a cor do seu veiculo");
    return ChangeVehicleColor(GetPlayerVehicleID(playerid), cor1, cor2);
}
Reply


Messages In This Thread
[PEDIDO]/mudarcor [COR 1] [COR 2] - by fojo_ - 28.02.2012, 15:55
Re: [PEDIDO]/mudarcor [COR 1] [COR 2] - by paulor - 28.02.2012, 15:59
Re: [PEDIDO]/mudarcor [COR 1] [COR 2] - by fojo_ - 28.02.2012, 16:12
Re: [PEDIDO]/mudarcor [COR 1] [COR 2] - by paulor - 28.02.2012, 16:37
Re: [PEDIDO]/mudarcor [COR 1] [COR 2] - by fojo_ - 28.02.2012, 16:41
Re: [PEDIDO]/mudarcor [COR 1] [COR 2] - by demonneni - 28.02.2012, 17:00
Re: [PEDIDO]/mudarcor [COR 1] [COR 2] - by Kmatsu - 28.02.2012, 17:12
Re: [PEDIDO]/mudarcor [COR 1] [COR 2] - by fojo_ - 28.02.2012, 17:15
Re: [PEDIDO]/mudarcor [COR 1] [COR 2] - by paulor - 28.02.2012, 17:28
Re: [PEDIDO]/mudarcor [COR 1] [COR 2] - by fojo_ - 28.02.2012, 17:41

Forum Jump:


Users browsing this thread: 5 Guest(s)