Asking About sscanf in OnDialogResponse
#1

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;
}
there is no error here.. but after i go to fish shop and type the amount of bait i want, its nothing happened
Reply
#2

up ??
Reply
#3

What are we supposed to do?
Reply
#4

This line

pawn Код:
text = warafak;
is completely useless because you are just doing "text = 0;" (warafak is just initialized and its value is 0)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)