[Ajuda]script - payday
#4

pawn Код:
//OnGameModeInit
SetTimer("Up", 60000 * 60, true); // 60000 = 1 minuto | 60000 * 60 = 1minutox60minutos

public Up()
{
    for(new i = 0; i < GetMaxPlayers(); i++)
    {
        if(IsPlayerConnected(i))
        {
            new aname[MAX_PLAYER_NAME], string[128];
            GetPlayerName(i, aname, MAX_PLAYER_NAME);
            format(file, sizeof(file), PASTA_CONTAS, aname);
            if(dini_Int(file, "Profissao") == Desempregado)
            {
                SendClientMessage(i,  0xC10000AA,"~~~~~~~~~~~~~~~~~~~~~~ Sбlario ~~~~~~~~~~~~~~~~~~~~~~");
                SendClientMessage(i,  0xFFFFFFAA,"» Ministйrio do Trabalho:");
                SendClientMessage(i,  0xFFFFFFAA,"Assistкncia financeira temporбria ao trabalhador desempregado!");
                SendClientMessage(i,  0xFFFFFFAA,"Vocк recebeu 65,00 R$ do Seguro-Desemprego!");
                SendClientMessage(i,  0xC10000AA,"~~~~~~~~~~~~~~~~~~~~~~ Sбlario ~~~~~~~~~~~~~~~~~~~~~~");
                GivePlayerGrana(i, 65);
            }
        }
    }
    return true;
}
Faltavam as chavetas e o return no final. Nгo olhei para o resto do cуdigo, mas parece estar correto.
Reply


Messages In This Thread
[Ajuda]script - payday - by 22Jack - 27.01.2012, 17:48
Re: [Ajuda]script - payday - by DrTHE - 27.01.2012, 17:53
Re: [Ajuda]script - payday - by 22Jack - 27.01.2012, 18:12
Re: [Ajuda]script - payday - by [A]rray - 27.01.2012, 18:20
Re: [Ajuda]script - payday - by 22Jack - 27.01.2012, 18:22
Re: [Ajuda]script - payday - by 22Jack - 27.01.2012, 18:26
Re: [Ajuda]script - payday - by DrTHE - 27.01.2012, 18:27
Re: [Ajuda]script - payday - by 22Jack - 27.01.2012, 18:29
Re: [Ajuda]script - payday - by DrTHE - 27.01.2012, 18:30
Re: [Ajuda]script - payday - by 22Jack - 27.01.2012, 18:31

Forum Jump:


Users browsing this thread: 1 Guest(s)