19.02.2018, 18:06
PHP код:
if(dialogid == DIALOG_SETTINGS)
{
if(response)
{
switch(listitem)
{
case 0:showuistyledialog(playerid);
case 1:disableduelinvite(playerid);
}
}
}
PHP код:
stock disableduelinvite(playerid)
{
IsDuelDisabled[playerid] = true;
SendClientMessage(playerid, -1, "{ff8000}(INFO) You now disabled duel invitations!");
ShowPlayerDialog(playerid, DIALOG_SETTINGS, DIALOG_STYLE_TABLIST_HEADERS, "{FF0000}Your IG- Settings",
"Setting \tWhat it means?\n\
UI Settings\t{4286f4}Used to hide/show textdraws.\n\
{ff0000}Disable Duel\t{4286f4}Used to disable invitations.\n\
PM Settings\t{4286f4}Used to disable PM's.\n\
Points Settings\t{4286f4}Used to disable others to send points.\n\
Skin Settings\t{4286f4}Used to set, and save skin.",
else
{
IsDuelDisabled[playerid] = false;
SendClientMessage(playerid, -1, "{ff8000}(INFO) You now enabled duel invitations!");
ShowPlayerDialog(playerid, DIALOG_SETTINGS, DIALOG_STYLE_TABLIST_HEADERS, "{FF0000}Your IG- Settings",
"Setting \tWhat it means?\n\
UI Settings\t{4286f4}Used to hide/show textdraws.\n\
Disable Duel\t{4286f4}Used to disable invitations.\n\
PM Settings\t{4286f4}Used to disable PM's.\n\
Points Settings\t{4286f4}Used to disable others to send points.\n\
Skin Settings\t{4286f4}Used to set, and save skin.",
"Select", "Leave");
}
}
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
Something on the code
if i delete
PHP код:
case 1:disableduelinvite(playerid);