25.09.2017, 09:17
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); } }