SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 20/02/2019, 04:40 PM   #1
TokicMajstor
Big Clucker
 
TokicMajstor's Avatar
 
Join Date: Oct 2018
Location: Bosnia And Herzegovina
Posts: 158
Reputation: 1
Default Strcat

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

Code:
	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
__________________


If Iam better than you = you're noob
If you're better than me = you're cheater
If everyone is better than me = I have lags
#Logic
TokicMajstor is offline   Reply With Quote
Old 20/02/2019, 08:17 PM   #2
TheToretto
Gangsta
 
TheToretto's Avatar
 
Join Date: Jul 2015
Posts: 515
Reputation: 54
Default Re: Strcat

Try debugging your code with some prints INSIDE the if statement
__________________






Toretto#9902

Rest in peace grandpa, 03 November 2018
TheToretto is offline   Reply With Quote
Old 21/02/2019, 12:28 PM   #3
TokicMajstor
Big Clucker
 
TokicMajstor's Avatar
 
Join Date: Oct 2018
Location: Bosnia And Herzegovina
Posts: 158
Reputation: 1
Default Re: Strcat

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


If Iam better than you = you're noob
If you're better than me = you're cheater
If everyone is better than me = I have lags
#Logic
TokicMajstor is offline   Reply With Quote
Old 21/02/2019, 12:30 PM   #4
DaniceMcHarley
High-roller
 
DaniceMcHarley's Avatar
 
Join Date: Feb 2012
Posts: 1,746
Reputation: 93
Default Re: Strcat

Max Dialog ID is 32767. Using negative values will close any open dialog.
DaniceMcHarley is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
strcat ivndosos Scripting Help 4 25/03/2018 09:53 PM
Strcat Skylar Paul Help Archive 5 22/03/2011 12:22 AM
strcat() admantis Help Archive 3 18/03/2011 12:05 AM
strcat help Haydz Help Archive 1 18/02/2011 02:46 AM
strcat Gh0sT_ Help Archive 9 05/02/2011 03:03 PM


All times are GMT. The time now is 06:21 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.