[AJUDA] Simples erro
#2

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    new cmd[256], idx;
    cmd = strtok(cmdtext, idx);
    if(strcmp(cmd, "/pintar", true) == 0)
    {
        if(IsPlayerInAnyVehicle(playerid))
        {
            new string[128], tmp[64];
            tmp = strtok(cmdtext, idx);
            new tmp2 = strval(tmp);
            ChangeVehicleColor(GetPlayerVehicleID(playerid),tmp2,tmp2);
            format(string, sizeof(string),"Tu mudaste as cores do teu carro para: %i",tmp2);
            SendClientMessage(playerid, 0xF60000AA, string);
        }
        else
        {
            SendClientMessage(playerid, 0xF60000AA, "Erro: Tu nгo estбs em nenhum veнculo!");
        }
            return 1;
    }
    return 0;
}
Reply


Messages In This Thread
[AJUDA] Simples erro - by [AF]Junior - 29.05.2011, 15:58
Re: [AJUDA] Simples erro - by Dr_Pawno - 29.05.2011, 16:57

Forum Jump:


Users browsing this thread: 1 Guest(s)