[Ajuda] comando funcionando po torto
#2

axo que й isso
nгo sei mexer com strcmp

pawn Код:
if(strcmp(cmd, "/aremovecarfaction", true) == 0)
{
   
    if(IsPlayerConnected(playerid))
    {
       
        new thecar = strval(tmp);
        if (PlayerInfo[playerid][Admin] >= 5 || PlayerInfo[playerid][HAdmin] == 1 || PlayerInfo[playerid][HAdmin] >= 2)
        {
           
            if(IsPlayerInAnyVehicle(playerid))
            {
               
                if(thecar < 11 || 255)
                {
                   
                    new car = GetPlayerVehicleID(playerid) - 1;
                    new vehicleid = GetPlayerVehicleID(playerid);
                    DynamicCars[car][FactionCar] = 255;
                    new wstring[128];
                    format(wstring, sizeof(wstring), "Tu removeste o veiculo ID %d's da faction.", vehicleid);
                    SendClientMessage(playerid,COLOR_ADMINCMD, wstring);
                    SaveDynamicCars();
                }
                else
                {
                   
                    SendClientMessage(playerid, COLOR_RED, "{FF0000}*Erro:{F6F6F6} ID de Faction Incorrecta, Faction ID's: 1-10.");
                }
            }
            else
            {
               
                SendClientMessage(playerid, COLOR_RED, "{FF0000}*Erro:{F6F6F6} Nгo estбs dentro de um veнculo.");
            }
        }
        else
        {
           
            SendClientMessage(playerid, COLOR_RED, ESKECE);
        }
    }
    return 1;
}
Reply


Messages In This Thread
comando funcionando po torto - by caoraivoso3 - 10.03.2013, 14:59
Re: comando funcionando po torto - by smiiir - 10.03.2013, 15:00
Re: comando funcionando po torto - by Dwayne-Pheonix - 10.03.2013, 15:03
Re: comando funcionando po torto - by Don_Speed - 10.03.2013, 15:11
Re: comando funcionando po torto - by caoraivoso3 - 10.03.2013, 15:14
Re: comando funcionando po torto - by Sergiosousa - 10.03.2013, 21:10

Forum Jump:


Users browsing this thread: 1 Guest(s)