Strcat - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Strcat (
/showthread.php?tid=664148)
Strcat -
TokicMajstor - 20.02.2019
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
Re: Strcat -
TheToretto - 20.02.2019
Try debugging your code with some prints INSIDE the if statement
Re: Strcat -
TokicMajstor - 21.02.2019
I resloved it. The ID of dialog was too big. Idk if it is limited in some way but it was too big
Re: Strcat -
Beckett - 21.02.2019
Max Dialog ID is 32767. Using negative values will close any open dialog.