SA-MP Forums Archive
Help me clear some things - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help me clear some things (/showthread.php?tid=631789)



Help me clear some things - LazzyBoy - 04.04.2017

Fixed it up ty


Re: Help me clear some things - Marricio - 04.04.2017

I didn't understand correctly your idea but I think it could be achieved in different ways, it would help to know how your current code works right now.

It could be something like this:

Код:
enum E_POKER_BETS {
    bet_table,
    bet_player,
    bet_amount
}

new PokerBet[MAX_POKER_TABLES][E_POKER_BETS];

AddBet(playerid, table, amount);
Or using y_iterate

Код:
// #define MAX_POKER_BETS  MAX_POKER_TABLES * 10

new Iterator:pokerbets<MAX_POKER_TABLES, MAX_POKER_BETS>

// callback OnPlayerBet

Iter_Add(pokerbets);
Or, if you've got SQL knowledge you can let MySQL do all the heavy work (it would be better efficient-wise since it doesn't require the SA-MP server to query data, however the difference is minimal since it's not really a big system that gets called many times imo)

Just tossing some ideas..


Re: Help me clear some things - LazzyBoy - 05.04.2017

fixed it nvm


Re: Help me clear some things - LazzyBoy - 05.04.2017

nevermind this