13.06.2014, 17:22
(
Последний раз редактировалось xFirex; 13.06.2014 в 22:49.
)
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == FISH_DIALOG+1)
{
new text;
if(sscanf(inputtext, "d", text)) return SendClientMessage(playerid, -1, "ERROR: please enter numeric number");
{
new warafak;
text = warafak;
text *= BaitCost;
if(GetPlayerMoney(playerid) < text) return SendClientMessage(playerid,-1,"ERROR: You Don't Have Money To Purchase The Bait");
{
PlayerInfo[playerid][pBaits] += warafak;
}
}
return 1;
}