SA-MP Forums Archive
[Pedido] passar para strcmp - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Pedido] passar para strcmp (/showthread.php?tid=423945)



passar para strcmp - gabrielloko157 - 20.03.2013

alguem pode passar pra strcmp ? plz


PHP код:
CMD:blindar(playeridparams[])
{
    if(!
IsAMec(playerid))
    {
        
SendClientMessage(playeridCOLOR_GREY"Vocк nгo й mecanico !");
        return 
1;
    }
    new 
playa;
    new 
money;
    if(
sscanf(params"ri"playamoney))    return SendClientMessage(playeridCOLOR_GRAD2"Digite: /blindar [id/nome] [preзo]");
    if(
money || money 7000)    return SendClientMessage(playeridCOLOR_GREY"Preco minimo 1, preco maximo 7000 !");
    if(
IsPlayerConnected(playa))
    {
        if(
playa != INVALID_PLAYER_ID)
        {
            if(
ProxDetectorS(8.0playeridplaya)&& IsPlayerInAnyVehicle(playa))
            {
                if(
playa == playerid)    return SendClientMessage(playeridCOLOR_GREY"Vocк nгo pode blindar para vocк mesmo !");
                
GetPlayerName(playaOutroNomesizeof(OutroNome));
                
GetPlayerName(playeridNomesizeof(Nome));
                
format(STRsizeof(STR), "Vocк ofereceu ao Player(a) %s para Blindar o veнculo Dele por R$%d."OutroNomemoney);
                
SendClientMessage(playeridCOLOR_LIGHTBLUESTR);
                
format(STRsizeof(STR), "Mecanico %s quer Blindar seu veнculo por R$%d, (Digite /aceitar blindagem) para aceitar."Nomemoney);
                
SendClientMessage(playaCOLOR_LIGHTBLUESTR);
                
BlindagemOffer[playa] = playerid;
                
BlindagemPrice[playa] = money;
            }
            else
            {
                
SendClientMessage(playeridCOLOR_GREY"Este jogador nгo estб perto de vocк ou nгo estб no carro.");
            }
        }
    }
    else
    {
        
SendClientMessage(playeridCOLOR_GREY"O Jogador estб offline.");
    }
    return 
1;
}
CMD:reparar(playeridparams[])
{
    if(!
IsAMec(playerid))
    {
        
SendClientMessage(playeridCOLOR_GREY"Vocк nгo й mecanico !");
        return 
1;
    }
    new 
playa;
    new 
money;
    if(
sscanf(params"ri"playamoney))    return SendClientMessage(playeridCOLOR_GRAD2"Digite: /reparar [id/nome] [preзo]");
    if(
money || money 5000)    return SendClientMessage(playeridCOLOR_GREY"Preco minimo 1, preco maximo 5000 !");
    if(
IsPlayerConnected(playa))
    {
        if(
playa != INVALID_PLAYER_ID)
        {
            if(
ProxDetectorS(8.0playeridplaya)&& IsPlayerInAnyVehicle(playa))
            {
                if(
playa == playerid)    return SendClientMessage(playeridCOLOR_GREY"Nгo posso fazer isso !");
                
GetPlayerName(playaOutroNomesizeof(OutroNome));
                
GetPlayerName(playeridNomesizeof(Nome));
                
format(STRsizeof(STR), "Vocк ofereceu ao(a) %s para concertar seu carro por R$%d."OutroNomemoney);
                
SendClientMessage(playeridCOLOR_LIGHTBLUESTR);
                
format(STRsizeof(STR), "Mecanico %s quer reparar seu carro por R$%d, (Digite /aceitar reparo) para aceitar."Nomemoney);
                
SendClientMessage(playaCOLOR_LIGHTBLUESTR);
                
RepairOffer[playa] = playerid;
                
RepairPrice[playa] = money;
            }
            else
            {
                
SendClientMessage(playeridCOLOR_GREY"Este jogador nгo estб perto de vocк ou nгo estб no carro.");
            }
        }
    }
    else
    {
        
SendClientMessage(playeridCOLOR_GREY"O Jogador estб offline.");
    }
    return 
1;