02.03.2015, 10:56
Код:
dcmd_placebet(playerid, params[]) { if(joinedtable[playerid] == 1) //joined the table { if(peopleattable >= 2) //there is more than two people on the table { new number, amount; if(sscanf(params, "ii", number, amount)) return SendClientMessage(playerid, COLOR_RED, "ERROR: /placebet [1-6] [amount]"); if (number < 1) return SendClientMessage(playerid, COLOR_RED, "Numbers should be greater than 1."); if (number > 6) return SendClientMessage(playerid, COLOR_RED, "Numbers should be less than 6."); //continue with your code. } else SendClientMessage(playerid, COLOR_RED, "You need to have 2+ players at a table."); } else SendClientMessage(playerid, COLOR_RED, "You need to join a table."); return 1; }