SA-MP Forums Archive
Help Me CMD: - 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: Help Me CMD: (/showthread.php?tid=657657)



Help Me CMD: - HueTinhVietNam - 12.08.2018

54908 : error 029: invalid expression, assumed zero
54908 : warning 215: expression has no effect
54908 : warning 215: expression has no effect
54908 : warning 215: expression has no effect
54908 : warning 215: expression has no effect
54908 : warning 215: expression has no effect
54908 : error 001: expected token: ";", but found ")"
54908 : error 029: invalid expression, assumed zero
54908 : fatal error 107: too many error messages on one line
Код:
CMD:doiphieu(playerid, params[])
{
    if(IsPlayerInRangeOfPoint(playerid, 4.0, -2445.2866,508.2198,30.0838)) //cho nay thay doi toa do doi phieu nhe
	if(GetPVarInt(playerid, "PinConfirmed"))
	{
(54908)		ShowPlayerDialog(playerid, DIALOG_PHIEUQUA, DIALOG_STYLE_LIST, "Ban Muon Doi Phieu Qua?","6 Phieu (2,000,000 SAD)\n10 Phieu (5,000 Credit)\n12 Phieu (200,000 VatLieu)\n15 Phieu (1 Freecar)\n18 Phieu (1 VipGold 30 days)\n20 Phieu (1 Rimkit)", "Ok", "Thoat");
	}
	else
	{
  		PinLogin(playerid);
	}
	return 1;
}



Re: Help Me CMD: - Sew_Sumi - 13.08.2018

First thing I'd do is try the dialog without all the braces... That is likely to be what's causing this, and in which case, they may need to be escaped or something.


Re: Help Me CMD: - HueTinhVietNam - 13.08.2018

Quote:
Originally Posted by Sew_Sumi
Посмотреть сообщение
First thing I'd do is try the dialog without all the braces... That is likely to be what's causing this, and in which case, they may need to be escaped or something.
I tried many ways, but still failed


Re: Help Me CMD: - Sew_Sumi - 13.08.2018

What exactly have you tried though?

You could firstly do as I say and remove all the braces (()) and try it.

Another would be to form the contents of the dialog in a string prior to it, and address the string itself for the dialog.

Код:
"6 Phieu (2,000,000 SAD)\n10 Phieu (5,000 Credit)\n12 Phieu (200,000 VatLieu)\n15 Phieu (1 Freecar)\n18 Phieu (1 VipGold 30 days)\n20 Phieu (1 Rimkit)"