Host restarts after I join the table
#10

This is dialogid: 4200. On which crashdetect showed erros. Pawn compiler isn't giving me any errors on this dialog


Код:
		case DIALOG_CGAMESBUYINPOKER:
		{
			if(response) {
				if(strval(inputtext) < PokerTable[GetPVarInt(playerid, "pkrTableID")-1][pkrBuyInMin] || strval(inputtext) > PokerTable[GetPVarInt(playerid, "pkrTableID")-1][pkrBuyInMax] || strval(inputtext) > GetPVarInt(playerid, "cgChips")) {
					return ShowCasinoGamesMenu(playerid, DIALOG_CGAMESBUYINPOKER);
				}

				PokerTable[GetPVarInt(playerid, "pkrTableID")-1][pkrActivePlayers]++;
				SetPVarInt(playerid, "pkrChips", GetPVarInt(playerid, "pkrChips")+strval(inputtext));
				SetPVarInt(playerid, "cgChips", GetPVarInt(playerid, "cgChips")-strval(inputtext));

				format(string, sizeof(string), "%s (IP:%s) has bought in with the amount of $%s (%d)", GetPlayerNameEx(playerid), GetPlayerIpEx(playerid), number_format(GetPVarInt(playerid, "pkrChips")), GetPVarInt(playerid, "pkrTableID")-1);
				Log("logs/poker.log", string);

				if(PokerTable[GetPVarInt(playerid, "pkrTableID")-1][pkrActive] == 3 && PokerTable[GetPVarInt(playerid, "pkrTableID")-1][pkrRound] == 0 && PokerTable[GetPVarInt(playerid, "pkrTableID")-1][pkrDelay] >= 2) {
					SetPVarInt(playerid, "pkrStatus", 1);
				}
				else if(PokerTable[GetPVarInt(playerid, "pkrTableID")-1][pkrActive] < 3) {
					SetPVarInt(playerid, "pkrStatus", 1);
				}

				if(PokerTable[GetPVarInt(playerid, "pkrTableID")-1][pkrActive] == 1 && GetPVarInt(playerid, "pkrRoomLeader")) {
					PokerTable[GetPVarInt(playerid, "pkrTableID")-1][pkrActive] = 2;
					SelectTextDraw(playerid, COLOR_YELLOW);
				}
			} else {
				return LeavePokerTable(playerid);
			}
		}
Reply


Messages In This Thread
Host restarts after I join the table - by CoachCarter - 25.09.2017, 08:32
Re: Host restarts after I join the table - by jlalt - 25.09.2017, 08:34
Re: Host restarts after I join the table - by CoachCarter - 25.09.2017, 08:37
Re: Host restarts after I join the table - by Sew_Sumi - 25.09.2017, 08:44
Re: Host restarts after I join the table - by CoachCarter - 25.09.2017, 08:46
Re: Host restarts after I join the table - by CoachCarter - 25.09.2017, 08:56
Re: Host restarts after I join the table - by Mikro - 25.09.2017, 09:04
Re: Host restarts after I join the table - by Sew_Sumi - 25.09.2017, 09:11
Re: Host restarts after I join the table - by CoachCarter - 25.09.2017, 09:12
Re: Host restarts after I join the table - by CoachCarter - 25.09.2017, 09:17

Forum Jump:


Users browsing this thread: 1 Guest(s)