SA-MP Forums Archive
Bug again? - 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: Bug again? (/showthread.php?tid=598281)



Bug again? - Sheperc - 10.01.2016

Made a dialog that should be shown a couple seconds after the player spawns but it doesn't show for no reason.

Timer:
Код:
SetTimerEx("TaisFreeze", 2500, false, "i", playerid);
Dialog:
Код:
forward TaisFreeze(playerid);
public TaisFreeze(playerid)
{
	new string1[128];
	strins(string1, "first half long writing bla bla", 0);
	strcat(string1, "other half of long writing bla bla bla");
	
	ShowPlayerDialog(playerid, 1012, DIALOG_STYLE_MSGBOX, "{FF0000}Rules", string1, "Good", "");
	return 1;
}
• Dialog is Defined
• Dialog still won't show if I don't use any strings there, just write a normal text


Re: Bug again? - lucamsx - 10.01.2016

Try this
Код:
forward TaisFreeze(playerid);
public TaisFreeze(playerid)
{
	new string1[128];
	string1 = "text";
	strcat(string1, "text");
	ShowPlayerDialog(playerid, 1012, DIALOG_STYLE_MSGBOX, "{FF0000}Rules", string1, "Good", "");
	return 1;
}



Re: Bug again? - Sheperc - 10.01.2016

Quote:
Originally Posted by lucamsx
Посмотреть сообщение
Try this
Код:
forward TaisFreeze(playerid);
public TaisFreeze(playerid)
{
	new string1[128];
	string1 = "text";
	strcat(string1, "text");
	ShowPlayerDialog(playerid, 1012, DIALOG_STYLE_MSGBOX, "{FF0000}Rules", string1, "Good", "");
	return 1;
}
Still nothing, i dunno why


Re: Bug again? - Infinity - 10.01.2016

Where do you start the timer?