11.01.2015, 19:03
One player crash server with this dialog,but i don't know how?
Код:
if(dialogid == 50) { if(!response) return 1; if(response) { if(IsNumeric(inputtext)) { if(strval( inputtext ) >= 1 || strval( inputtext ) <= 80 ) { SafeGivePlayerMoney(playerid, - 50); PlayerInfo[playerid][pLottoNr] = strval(inputtext); format(string, sizeof(string), "Kupili ste listic s brojem %d.", strval(inputtext)); SendClientMessage(playerid, COLOR_WHITE, string); } else { ShowPlayerDialog(playerid, 50, DIALOG_STYLE_INPUT, "Market", "Unesite broj koji zelite.", "Ok", "Izadji"); return 1; } } } }