SA-MP Forums Archive
errors help - 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: errors help (/showthread.php?tid=584324)



errors help - Alcag - 03.08.2015

Plz help with my
error: error 029: invalid expression, assumed zero
error 022: must be lvalue (non-constant)

CODE:
Код:
                GasAmount = TextDrawCreate(499.000000, 100.000000, "Gas :");
		TextDrawBackgroundColor(GasAmount, 255);
		TextDrawFont(GasAmount, 1);
		TextDrawLetterSize(GasAmount, 0.400000, 1.000000);
		TextDrawColor(GasAmount, -65281);
		TextDrawSetOutline(GasAmount, 0);
		TextDrawSetProportional(GasAmount, 1);
		TextDrawSetShadow(GasAmount, 1);
		TextDrawUseBox(GasAmount, 1);
		TextDrawBoxColor(GasAmount, 255);
		here is errors-->TextDrawTextSize(GasAmount, 605.000000, 0.000000);*/



Re: errors help - Variable™ - 03.08.2015

Код:
TextDrawTextSize(GasAmount, 255.999908, 0.000000);
Try this.