Xinerki / kgv-blackjack

Blackjack for FiveM, very close to GTA Online.
42 stars 32 forks source link

index nil value (lack of proper onesync support) #3

Closed zek0 closed 4 years ago

zek0 commented 4 years ago

Have problem in:

function SetPlayerBet(i, seat, bet, betId, double, split) this line: players[i][num].bet = tonumber(bet)

example situation: If two player seat in table and bet, all ok, after if one player standup server get this error: attempt to index nil value (field '?'), and that it need restart script

Xinerki commented 4 years ago

are you using onesync?

zek0 commented 4 years ago

yes

Xinerki commented 4 years ago

well that might be the problem

zek0 commented 4 years ago

Thaks for answer. It is possible made function for reset table. Example if one of players standup, table is closed for all players and reset. Thats will be great. Thank you for great script.

Xinerki commented 4 years ago

i dont know actually, but i was thinking of doing onesync support sooner or later, so you might just have to wait a little