Winning at lotto without a number
#2

OnPlayerConnect: Biglietto[playerid] = -1;

And inside the public estrazione at the bottom add this:
pawn Код:
for (new i=0; i<MAX_PLAYERS; i++)
{
    if (IsPlayerConnected(i))
    {
        Biglietto[i] = -1;
    }
}
And about the 1st loop which checks if a player has the lotto number i don;t know how you came up with i!=MAX_PLAYERS neither whether its good or bad but I always use i<MAX_PLAYERS as I ve seen it being used in all scripts I ve seen.
Reply


Messages In This Thread
Winning at lotto without a number - by Face9000 - 16.05.2013, 19:22
AW: Winning at lotto without a number - by HurtLocker - 16.05.2013, 19:35

Forum Jump:


Users browsing this thread: 1 Guest(s)