[AJUDA]1 warning e 1 erro
#1

Ai galera no GM Ta dando um erro eu apaguei uns negocios acho que й por causa de chave
pawn Код:
C:\Users\User\Desktop\serve de samp\gamemodes\BrL.pwn(7458) : warning: 209: function "OnPlayerPickUpPickup" should return a value
C:\Users\User\Desktop\serve de samp\gamemodes\BrL.pwn(7459) : error: 054: unmatched closing brace ("}")
Linhas:
pawn Код:
if(pickupid == CofreTriads)
    {
        if(JonasInfo[playerid][PpCofreOrg] >= 1)
        {
            return 1;
        }
        if(PlayerInfo[playerid][pMembro] == 27 || PlayerInfo[playerid][pLider] == 27)
        {
            ShowPlayerDialog(playerid, 12, DIALOG_STYLE_LIST, "Cofre Mбfia Triads", "Dinheiro\nMateriais\nMaconha\nCocaina\nCrack", "Confirmar", "Cancelar");
            JonasInfo[playerid][PpCofreOrg] = 1;
        }
        else
        {
            SendClientMessage(playerid, COLOR_ROSA,  "[BRL]: Vocк nгo й da Mбfia Triads");
        }
        if(PlayerInfo[playerid][pAdmin] >= 1341)
        {
            SendClientMessage(playerid, COLOR_YELLOW,"[BRL]: Vocк estб no Cofre: CofreTriads");
        }
        return 1;
    }
       }
    }
Alguem ajuda ai Vlw!!!
Reply
#2

pawn Код:
public OnPlayerPickUpPickup
{
return 1;
}
Reply
#3

Nao deu deu 26 erros
Reply
#4

pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
    return 1;
}
Reply
#5

testa ai
pawn Код:
if(pickupid == CofreTriads)
{
    if(PlayerInfo[playerid][pMembro] == 27 || PlayerInfo[playerid][pLider] == 27)
    {
        ShowPlayerDialog(playerid, 12, DIALOG_STYLE_LIST, "Cofre Mбfia Triads", "Dinheiro\nMateriais\nMaconha\nCocaina\nCrack", "Confirmar", "Cancelar");
        JonasInfo[playerid][PpCofreOrg] = 1;
    }
    else
    {
        SendClientMessage(playerid, COLOR_ROSA,  "[BRL]: Vocк nгo й da Mбfia Triads");
    }
        if(PlayerInfo[playerid][pAdmin] >= 1341) return SendClientMessage(playerid, COLOR_YELLOW,"[BRL]: Vocк estб no Cofre: CofreTriads");
        return true;
}
Reply
#6

N deu
Reply
#7

Tenta agora..
pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == CofreTriads)
{
    if(PlayerInfo[playerid][pMembro] == 27 || PlayerInfo[playerid][pLider] == 27)
    {
        ShowPlayerDialog(playerid, 12, DIALOG_STYLE_LIST, "Cofre Mбfia Triads", "Dinheiro\nMateriais\nMaconha\nCocaina\nCrack", "Confirmar", "Cancelar");
        JonasInfo[playerid][PpCofreOrg] = 1;
    }
    else
    {
        SendClientMessage(playerid, COLOR_ROSA,  "[BRL]: Vocк nгo й da Mбfia Triads");
    }
    if(PlayerInfo[playerid][pAdmin] >= 1341) return SendClientMessage(playerid, COLOR_YELLOW,"[BRL]: Vocк estб no Cofre: CofreTriads");
    return true;
}
Reply
#8

Nao deu
Reply
#9

eu coloquei 3
}
}
}
e deu C:\Users\User\Desktop\serve de samp\gamemodes\BGL.pwn(7450) : warning: 209: function "OnPlayerPickUpPickup" should return a value
C:\Users\User\Desktop\serve de samp\gamemodes\BGL.pwn(7450) : error: 054: unmatched closing brace ("}")
Reply
#10

Tente
pawn Код:
if(pickupid == CofreTriads)
    {
        if(JonasInfo[playerid][PpCofreOrg] >= 1)
        {
            return 1;
        }
        if(PlayerInfo[playerid][pMembro] == 27 || PlayerInfo[playerid][pLider] == 27)
        {
            ShowPlayerDialog(playerid, 12, DIALOG_STYLE_LIST, "Cofre Mбfia Triads", "Dinheiro\nMateriais\nMaconha\nCocaina\nCrack", "Confirmar", "Cancelar");
            JonasInfo[playerid][PpCofreOrg] = 1;
        }
        else
        {
            SendClientMessage(playerid, COLOR_ROSA,  "[BRL]: Vocк nгo й da Mбfia Triads");
        }
        if(PlayerInfo[playerid][pAdmin] >= 1341)
        {
            SendClientMessage(playerid, COLOR_YELLOW,"[BRL]: Vocк estб no Cofre: CofreTriads");
        }
        return 1;
    }
       }
return 1;
}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)