SA-MP Forums Archive
[HELP]error01 - 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]error01 (/showthread.php?tid=366033)



[HELP]error01 - Dusan01 - 04.08.2012

i have tihs error

Код:
error 001: expected token: ";", but found "-identifier-"
on tihs line

Код:
   regis10 = TextDrawCreate(75.000000, 124.000000, "Balkan Extazy RolePlay");



Re: [HELP]error01 - Syntax - 05.08.2012

Can you show the whole textdraw?


Re: [HELP]error01 - Dusan01 - 05.08.2012

here u go
Код:
   regis10 = TextDrawCreate(75.000000, 124.000000, "Balkan Extazy RolePlay");
	TextDrawBackgroundColor(regis10, -16776961);
	TextDrawFont(regis10, 1);
	TextDrawLetterSize(regis10, 0.549999, 6.099999);
	TextDrawColor(regis10, 255);
	TextDrawSetOutline(regis10, 1);
	TextDrawSetProportional(regis10, 1);



Re: [HELP]error01 - Syntax - 05.08.2012

Код:
new Text:registration;
^ Add that to the rest of your new Text:blahblahblah

and change your textdraw to this:

Код:
	registration = TextDrawCreate(75.000000, 124.000000, "Balkan Extazy RolePlay");
	TextDrawBackgroundColor(registration, -16776961);
	TextDrawFont(registration, 1);
	TextDrawLetterSize(registration, 0.549999, 6.099999);
	TextDrawColor(registration, 255);
	TextDrawSetOutline(registration, 1);
	TextDrawSetProportional(registration, 1);
No promises - Untested.