07.02.2017, 04:11
Quote:
|
This format then. Sorry not on my PC to test.
Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
switch (dialogid)
{
if(dialogid == 24)
{
if(response)
{
switch(listitem)
{
case 0:
{
new jm[170];
format(jm, sizeof jm, "Type your Message Here:");
ShowPlayerDialog(playerid, 97, DIALOG_STYLE_INPUT, "Change Message", jm, "Save", "Cancel");
}
case 1:
{
SendClientMessage(playerid, -1, "Test 2nd dialog");
}
}
}
else
{
SendClientMessage(playerid, -1, "You have closed this dialog.");
}
}
}
return 1;
}
|
Код:
(1002) : error 002: only a single statement (or expression) can follow each "case" (1002 -- 1003) : error 029: invalid expression, assumed zero (1025) : warning 209: function "OnDialogResponse" should return a value (1026) : error 010: invalid function or declaration Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 3 Errors.


