Strcat
#1

Again me... Whats wrong here? It doesn/t show anything when I type cmd in-game

Код:
	new info[3000];
	for(new i = 0; i < 200; i++)
	{
		if(!isnull(vpncountry[i]) && i != 0)
		{
		    new string[120];
		    format(string, sizeof(string), "Country ID %d = %s\n", i, vpncountry[i]);
		    strcat(info, string);
		}
	}
	ShowPlayerDialog(playerid, 45551, DIALOG_STYLE_MSGBOX, ""WHITE"Anti VPN List", info, "OK", "");
Somehow I found out that looping finishes perfectly and Show player dialog too, but it doesn`t really show the dialog on the screen
Reply
#2

Try debugging your code with some prints INSIDE the if statement
Reply
#3

I resloved it. The ID of dialog was too big. Idk if it is limited in some way but it was too big
Reply
#4

Max Dialog ID is 32767. Using negative values will close any open dialog.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)