13.03.2016, 10:00
Having a bit of trouble making a on and off toggle system with the Dialog, If someone can explain or get me started on it would be greatly appreciated.
Example..
PHONE: OFF (Bool to turn it on)
Started Code..:
Kind Regards,
minijackc
Example..
PHONE: OFF (Bool to turn it on)
Started Code..:
PHP код:
if(dialogid == DIALOG_SETTINGSMAIN)
{
if(response)
{
new toggleOnOff[3];
switch (listitem) {
new bool:togglemate = true;
new toggletext[3];
if (togglemate = true)
{
format(output[], len, const format[], ...)
}
case 0:
{
ShowPlayerDialog(playerid, DIALOG_SETTINGSSUB, DIALOG_STYLE_TABLIST_HEADERS, "Player Settings - Toggle", "Toggle\tStatus\n\
---General---\n\
PHONE\tOFF\n\
Newbie Chat\tOFF\n\
News\tOFF\n\
OOC Chat\tOFF\n\
Whispers\tOFF\n\
Private Radio(/PR)\tOFF\n\
Hunger Meter\tOFF\n\
Famed\tOFF\n\
VIP\tOFF\n\
---GROUPS---\n\
Dept\tOFF\n\
International\tOFF\n\
OOC Group (/g)\tOFF\n\
Radio\tOFF\n\
BUG Chat\tOFF\n\
Biz Radio\tOFF\n\
Point Messages\tOFF\n", "Select", "Close");
}
}
}
}
minijackc