10.10.2015, 15:25
I also replaced the line of code like this but still have 035 errors again and again I do not know why. This is my code people see nothing wrong here and help me fix it. Thanks again.
CODE CMD
CODE OnDialogresponse
CODE CMD
Код:
CMD:setfreq(playerid, params[]) { new inputtext, frequency; if(sscanf(inputtext, "i", frequency)) // <-- error 035: argument type mismatch (argument 1) In this Line again { ShowPlayerDialog(playerid, DIALOG_TANSO, DIALOG_STYLE_INPUT, "Enter the frequency ", " frequency may be higher and lower than 9999999 -9999999! \ n HINT: Set up your frequency la 0, se ve radio default mode. ", "Choice ", " Cancel "); } return 1; }
Код:
if(dialogid == DIALOG_TANSO) { if(response) { new frequency; if(frequency > 9999999 || frequency < -9999999) { return 1; } if (PlayerInfo[playerid][pRadio] == 1) { PlayerInfo[playerid][pRadioFreq] = frequency; format(string, sizeof(string), "you have been changed the frequency %s khz.",frequency); SendClientMessageEx(playerid, COLOR_WHITE, string); } } else SendClientMessageEx(playerid, COLOR_GRAD2, "You don't have frequency !"); return 1; }