Help me clear some things
#1

Fixed it up ty
Reply
#2

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..
Reply
#3

fixed it nvm
Reply
#4

nevermind this
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)