[Ajuda] Erros
#5

Quote:
Originally Posted by Q.I
Посмотреть сообщение
nao sei se esta correto mais tenta
pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++)
{
    if(PlayerInfo[i][pMembro] == 3 && donoFloresta == 1)
    {

        if(IsPlayerInFloresta(i))
        {

            GivePlayerMoney(i, GranadaFloresta);
       
        }

        return 1;
}
Nгo deu certo.

Todas as linhas:
Код:
if(PlayerInfo[i][pMembro] == 3 && donoFloresta == 1) {if(IsPlayerInFloresta(i)){GivePlayerMoney(i, GranadaFloresta);
format(string, sizeof(string), "Vocк recebeu R$%d, Por manter esta area sobre controle.",GranadaFloresta);SendClientMessage(i, COLOR_GRAD3, string);}}
if(PlayerInfo[i][pLider] == 3 && donoFloresta == 1){if(IsPlayerInFloresta(i)){GivePlayerMoney(i, GranadaFloresta);
format(string, sizeof(string), "Vocк recebeu R$%d, Por manter esta area sobre controle.",GranadaFloresta);SendClientMessage(i, COLOR_GRAD3, string);}}

if(PlayerInfo[i][pMembro] == 15 && donoFloresta == 2){if(IsPlayerInFloresta(i)){GivePlayerMoney(i, GranadaFloresta);
format(string, sizeof(string), "Vocк recebeu R$%d, Por manter esta area sobre controle.",GranadaFloresta);SendClientMessage(i, COLOR_GRAD3, string);}}
if(PlayerInfo[i][pLider] == 15 && donoFloresta == 2){if(IsPlayerInFloresta(i)){GivePlayerMoney(i, GranadaFloresta);
if(IsPlayerInFloresta(i)){GivePlayerMoney(i, GranadaFloresta);
format(string, sizeof(string), "Vocк recebeu R$%d, Por manter esta area sobre controle.",GranadaFloresta);SendClientMessage(i, COLOR_GRAD3, string);}}

if(PlayerInfo[i][pMembro] == 23 && donoFloresta == 3){if(IsPlayerInFloresta(i)){GivePlayerMoney(i, GranadaFloresta);
format(string, sizeof(string), "Vocк recebeu R$%d, Por manter esta area sobre controle.",GranadaFloresta);SendClientMessage(i, COLOR_GRAD3, string);}}
if(PlayerInfo[i][pLider] == 23 && donoFloresta == 3){if(IsPlayerInFloresta(i)){GivePlayerMoney(i, GranadaFloresta);
format(string, sizeof(string), "Vocк recebeu R$%d, Por manter esta area sobre controle.",GranadaFloresta);SendClientMessage(i, COLOR_GRAD3, string);}}}}return true;}
Reply


Messages In This Thread
Erros - by Amt. - 26.09.2012, 17:04
Re: Erros - by Q.I - 26.09.2012, 17:15
Re: Erros - by Amt. - 26.09.2012, 17:24
Re: Erros - by Q.I - 26.09.2012, 17:29
Re: Erros - by Amt. - 26.09.2012, 17:31
Re: Erros - by Q.I - 26.09.2012, 17:32
Re: Erros - by Amt. - 26.09.2012, 17:37
Re: Erros - by Q.I - 26.09.2012, 17:40
Re: Erros - by Amt. - 26.09.2012, 17:44
Re: Erros - by Q.I - 26.09.2012, 17:52

Forum Jump:


Users browsing this thread: 5 Guest(s)