This code don't send money
#1

Hello,i've this lotto code to sent the jackpot money at the winner,i made some tests in my server and when i pickup the winning number,it shows the winning message but IT DOESN'T GIVE MONEY

pawn Код:
if(winner != -1) //If there was a winner
    {
      for(new i; i<MAX_PLAYERS; i++) //checks through all players
    {
        new Pname[24];
        GetPlayerName(i, Pname, 24);
        new str[128];
        SendClientMessageToAll(0x62FF32FF, "****LOTTO INFORMATION****"); //Lotto info
        format(str, sizeof(str), "WE HAVE A WINNER! %s (Id: %d) won $%d!!!!", Pname, i, Jackpot);
        LottoLog(str);
        GivePlayerMoney(i, Jackpot);
        SendClientMessageToAll(0x62FF32FF, str); //Lotto info
        SendClientMessageToAll(0x62FF32FF, "Make sure you get a ticket for next draw - /lotto [1-30]"); //Lotto info
        Jackpot = LOTTO_START; //Resets the jackpot
    }
    }
What's wrong?
Reply


Messages In This Thread
This code don't send money - by Face9000 - 30.12.2011, 16:01
Re: This code don't send money - by James Coral - 30.12.2011, 16:02
Re: This code don't send money - by James Coral - 30.12.2011, 16:05
Re: This code don't send money - by Face9000 - 30.12.2011, 16:14
Re: This code don't send money - by Ash. - 30.12.2011, 16:17
Re: This code don't send money - by James Coral - 30.12.2011, 16:20
Re: This code don't send money - by James Coral - 30.12.2011, 16:22
Re: This code don't send money - by Face9000 - 30.12.2011, 16:26
Re: This code don't send money - by Ash. - 30.12.2011, 16:36
Re: This code don't send money - by Face9000 - 30.12.2011, 16:42

Forum Jump:


Users browsing this thread: 2 Guest(s)