error 033: array must be indexed (variable "-unknown-")
#2

Код:
OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
As you can see inputtext is an array, a string to be more precise.
So you should do something like this.Instead of
Код:
new criminal = inputtext;
Use
Код:
if(sscanf(inputtext, "u", criminal))
      return SendClientMessage(playerid, COLOR, "Invalid player.");
I guess you're familiar with the sscanf function.
Reply


Messages In This Thread
error 033: array must be indexed (variable "-unknown-") - by oSAINTo - 19.05.2017, 19:49
Re: error 033: array must be indexed (variable "-unknown-") - by Aly - 19.05.2017, 19:55
Re: error 033: array must be indexed (variable "-unknown-") - by oSAINTo - 19.05.2017, 19:59
Re: error 033: array must be indexed (variable "-unknown-") - by oSAINTo - 19.05.2017, 20:04
Re: error 033: array must be indexed (variable "-unknown-") - by Aly - 19.05.2017, 20:07
Re: error 033: array must be indexed (variable "-unknown-") - by oSAINTo - 20.05.2017, 00:04

Forum Jump:


Users browsing this thread: 2 Guest(s)