[Ayuda] Errores.
#8

Creo que estas cerrando sin abrir nada, proba asi:
pawn Код:
public SearchingHit(playerid)
{
    new string[256];
    new giveplayer[MAX_PLAYER_NAME];
    new searchhit = 0;
    for(new i=0; i<MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            if(searchhit == 0)
            {
                if(PlayerInfo[i][pHeadValue] > 0 && GotHit[i] == 0 && PlayerInfo[i][pMember] != 8)
                {
                    GetPlayerName(i, giveplayer, sizeof(giveplayer));
                    searchhit = 1;
                    hitfound = 1;
                    hitid = i;
                    for(new k=0; k<MAX_PLAYERS; k++)
                    {
                        if(IsPlayerConnected(k))
                        {
                            if(PlayerInfo[k][pMember] == 8 || PlayerInfo[k][pLeader] == 8)
                            {
                                SendClientMessage(k, COLOR_WHITE, "|__________________ Abogados SL __________________|");
                                SendClientMessage(k, COLOR_DBLUE, " Nueva alerta: Se busca un abogado que atienda esto.");
                                format(string, sizeof(string), "Persona: %s   ID: %d   Valor: $%d", giveplayer, i, PlayerInfo[i][pHeadValue]);
                                SendClientMessage(k, COLOR_DBLUE, string);
                                SendClientMessage(k, COLOR_YELLOW, "Utiliza /aceptarhit para atender el caso..");
                                SendClientMessage(k, COLOR_WHITE, "|________________________________________________________|");
                            }
                        }
                    }
                    return 0;
                }
            }
        }
    }
    if(searchhit == 0)
{

        SendClientMessage(playerid, COLOR_GREY, "Contratos disponibles.");
 } /* Lнnea 2992 */
    return 1;
{
Reply


Messages In This Thread
[Ayuda] Errores. - by Mario_Sonic - 19.01.2012, 13:37
Respuesta: [Ayuda] Errores. - by [Nikk] - 19.01.2012, 13:56
Re: [Ayuda] Errores. - by rubensm - 19.01.2012, 17:16
Respuesta: [Ayuda] Errores. - by Mario_Sonic - 20.01.2012, 12:56
Re: [Ayuda] Errores. - by Manuel_Franco - 20.01.2012, 15:17
Respuesta: [Ayuda] Errores. - by Mario_Sonic - 20.01.2012, 19:28
Respuesta: [Ayuda] Errores. - by Mario_Sonic - 22.01.2012, 10:38
Respuesta: [Ayuda] Errores. - by [Nikk] - 22.01.2012, 11:46
Respuesta: [Ayuda] Errores. - by Mario_Sonic - 22.01.2012, 14:27

Forum Jump:


Users browsing this thread: