[Ajuda] Ajuda com comando
#7

Por que nгo usa sscanf?
Bem mais prбtico.

pawn Код:
CMD:pintar(playerid, params[])
{
    static C1, C2, String[128];
    if(sscanf(params, "dd", C1, C2)) return SendClientMessage(playerid, -1, "Digite: /pintar <cor 1> <cor 2>");
    if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, -1, "[ERRO] Vocк nгo estб em um veнculo.");
    format(String, sizeof String, "[INFO] Vocк mudou as cores do seu veнculo para: %d e %d", Cor1, Cor2);
    SendClientMessage(playerid, -1, String);
    PlayerPlaySound(playerid, 1133, 257.6206, -41.5307, 1002.0234);
    ChangeVehicleColor(GetPlayerVehicleID(playerid), C1, C2);
    return 1;
}
Reply


Messages In This Thread
Ajuda com comando - by Tr0jan - 15.11.2012, 11:39
Re: Ajuda com comando - by [RW]_Claudio - 15.11.2012, 11:45
Re: Ajuda com comando - by .FuneraL. - 15.11.2012, 11:46
Re: Ajuda com comando - by Zona_Sky - 15.11.2012, 11:47
Re: Ajuda com comando - by .FuneraL. - 15.11.2012, 11:49
Re: Ajuda com comando - by Tr0jan - 15.11.2012, 11:52
Re: Ajuda com comando - by Ouro - 15.11.2012, 12:09
Re: Ajuda com comando - by Jason` - 15.11.2012, 12:23
Re: Ajuda com comando - by Wallker - 15.11.2012, 12:25
Re: Ajuda com comando - by Tr0jan - 15.11.2012, 12:34

Forum Jump:


Users browsing this thread: 1 Guest(s)