[Ajuda] Resolver flood.
#4

Eu nem vi o codigo direto .. porque eu ja tenho que sair esta ae se nao pegar vo arruma pra voce .


Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    new String[128];
    if(newkeys == 16)
    {
        for(new i = 0; i < MAX_CASAS; i++)
        {
            #define Inf[%0] kDados[i][%0]
            if(IsPlayerInRangeOfPoint(playerid, 2.0, kDados[i][kX], kDados[i][kY], kDados[i][kZ]))
            {
                PlayerTextDrawShow(playerid, Fechar_Casas[playerid]);
                SelectTextDraw(playerid, 0x00FF00FF);
                TogglePlayerControllable(playerid, false);
                for(new loop = 0; loop < 8; ++ loop)
                {
                    TextDrawShowForPlayer(playerid, Text_Casas[playerid][loop]);
                    format(String, sizeof String, "~y~Preco: ~w~$%d", Inf[kPreco]);
                    TextDrawSetString(Text_Casas[playerid][2], String);
                    format(String, sizeof String, "~y~Dono: ~w~%s", Inf[kDono]);
                    TextDrawSetString(Text_Casas[playerid][3], String);
                    format(String, sizeof String, "~y~Imobiliaria: ~w~%s", Inf[kImobiliaria_Name]);
                    TextDrawSetString(Text_Casas[playerid][4], String);
                    if(!strcmp(Inf[kDono], "Ninguem", true))
                    {
                        format(String, sizeof String, "~g~Disponivel");
                        TextDrawSetString(Text_Casas[playerid][7], String);
                        SendClientMessage(playerid, Branco, "Caso queira comprar esta casa, vб atй a imobiliaria responsavel usando /gps.");
                        SendClientMessage(playerid, Cinza, "Se nгo possuir um GPS vб atй uma loja de eletrфnicos.");
                    return 1;
                    }
                    else
                    {
                        format(String, sizeof String, "~r~Indisponivel");
                        TextDrawSetString(Text_Casas[playerid][7], String);
                    }
                    if(!strcmp(Inf[kImobiliaria_Name], "Nenhuma", true))
                    {
                        SendClientMessage(playerid, Branco, "Se vocк for dono de uma imobiliaria vocк pode usar /comprarcasa.");
return 1;
                    }
                }
            }
            #undef Inf
        }
    }
    return true;
}
Reply


Messages In This Thread
Resolver flood. - by Input - 26.05.2014, 22:33
Re: Resolver flood. - by MatheusDalZot - 26.05.2014, 22:58
Re: Resolver flood. - by Input - 26.05.2014, 23:30
Re: Resolver flood. - by Smoking_Script - 26.05.2014, 23:33
Re: Resolver flood. - by MatheusDalZot - 26.05.2014, 23:39
Re: Resolver flood. - by Input - 27.05.2014, 00:54
Re: Resolver flood. - by MatheusDalZot - 27.05.2014, 01:17

Forum Jump:


Users browsing this thread: 2 Guest(s)