03.01.2020, 18:06
You closed the bracket before you wrote
change your code to this:
Code:
ShowPlayerDialog(playerid, DIALOG_TOG, DIALOG_STYLE_TABLIST_HEADERS, "Tog", szDialog2, "Selectare", "Anulare");
Code:
CMD:tog(playerid, params[]) { new szDialog[1024], szDialog2[1024]; strcat(szDialog2, "Optiune\tStatus\n"); if(PlayerInfo[playerid][pNewbieEnabled] == 0) format(szDialog, 1024, "Newbie chat\t{3BBF0B}activat\n"); else format(szDialog, 1024, "Newbie chat\t{FF0000}dezactivat\n"); strcat(szDialog2, szDialog); if(gFam[playerid] == 0) format(szDialog, 1024, "Faction Chat\t{3BBF0B}activat\n"); else format(szDialog, 1024, "Faction Chat\t{FF0000}dezactivat\n"); strcat(szDialog2, szDialog); if(togfind[playerid] == 0) format(szDialog, 1024, "Find\t{3BBF0B}activat\n"); else format(szDialog, 1024, "Find\t{FF0000}dezactivat\n"); strcat(szDialog2, szDialog); if(WTToggle[playerid] == false) format(szDialog, 1024, "Walkie Talkie\t{3BBF0B}activat\n"); else format(szDialog, 1024, "Walkie Talkie\t{FF0000}dezactivat\n"); strcat(szDialog2, szDialog); if(gNews[playerid] == 0) format(szDialog, 1024, "News\t{3BBF0B}activat\n"); else format(szDialog, 1024, "News\t{FF0000}dezactivat\n"); strcat(szDialog2, szDialog); if(HidePM[playerid] == 0) format(szDialog, 1024, "Whisper\t{3BBF0B}activat\n"); else format(szDialog, 1024, "Whisper\t{FF0000}dezactivat\n"); strcat(szDialog2, szDialog); if(toglc[playerid] == 0) format(szDialog, 1024, "Leader Chat\t{3BBF0B}activat\n"); else format(szDialog, 1024, "Leader Chat\t{FF0000}dezactivat\n"); strcat(szDialog2, szDialog); ShowPlayerDialog(playerid, DIALOG_TOG, DIALOG_STYLE_TABLIST_HEADERS, "Tog", szDialog2, "Selectare", "Anulare"); }