[Ajuda]
#1

Bom o erro й o seguinte o a aзгo 1 estб iniciando sem ter necessidade, era pra iniciar caso a organizaзгo tivesse 1 materiais ou menos mais isso estб se executando sem os requerimentos que coloquei, alguйm sabe o que й? Obrigado.
Cуdigo:
pawn Код:
if(listitem == 0)
    {
    GetPlayerName(playerid, sendername, MAX_PLAYER_NAME);
    new organizacao = GetPlayerOrg(playerid);
    if(Cofre[organizacao][Materiais] < 1) // Aзгo: 1
    {
    PlayerInfo[playerid][pMaterial] = 0;
    return 1;
    }
    if(Cofre[organizacao][Maconha] < 1) // Aзгo: 2
    {
    PlayerInfo[playerid][pMaconha] = 0;
    return 1;
    }
    if(Cofre[organizacao][Maconha] > 2 || (Cofre[organizacao][Materiais] > 2) // Aзгo: 3
    {
    PlayerInfo[playerid][pMaterial] -= 500;
    Cofre[organizacao][Materiais] +500;
    PlayerInfo[playerid][pMaconha] -= 500;
    Cofre[organizacao][Maconha] +500;
    SendClientMessage(playerid, COLOR_GREY,"Vocк perdeu 500 materiais/maconha por depositar no seu cofre!");
    return 1;
    }
    }
Reply


Messages In This Thread
[Ajuda] - by diretor7 - 20.08.2011, 05:16
Re: [Ajuda] - by [AF]Junior - 20.08.2011, 05:17
Re: [Ajuda] - by diretor7 - 20.08.2011, 05:19
Re: [Ajuda] - by [AF]Junior - 20.08.2011, 05:22
Re: [Ajuda] - by diretor7 - 20.08.2011, 05:44
Re: [Ajuda] - by ViniBorn - 20.08.2011, 05:51
Re: [Ajuda] - by diretor7 - 20.08.2011, 06:18

Forum Jump:


Users browsing this thread: 1 Guest(s)