SA-MP Forums Archive
Scripting a text 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Scripting a text help! (/showthread.php?tid=69159)



Scripting a text help! - Zack9764 - 16.03.2009

Here's my code:

Код:
public OnGameModeInit()

Textdraw0 = TextDrawCreate(-1.000000,66.000000," ");
Textdraw1 = TextDrawCreate(1.000000,417.000000,"My Text");
TextDrawAlignment(Textdraw0,0);
TextDrawAlignment(Textdraw1,0);
TextDrawBackgroundColor(Textdraw0,0x000000ff);
TextDrawBackgroundColor(Textdraw1,0x000000ff);
TextDrawFont(Textdraw0,3);
TextDrawLetterSize(Textdraw0,1.000000,1.000000);
TextDrawFont(Textdraw1,0);
TextDrawLetterSize(Textdraw1,1.000000,2.999463);
TextDrawColor(Textdraw0,0xffffffff);
TextDrawColor(Textdraw1,0x00ff00cc);
TextDrawSetOutline(Textdraw0,1);
TextDrawSetProportional(Textdraw0,1);
TextDrawSetProportional(Textdraw1,1);
TextDrawSetShadow(Textdraw0,1);
TextDrawSetShadow(Textdraw1,5);
{
  new string[MAX_PLAYER_NAME];
  new string1[MAX_PLAYER_NAME];
	for(new c=0;c<CAR_AMOUNT;c++)
	{
		Gas[c] = GasMax;
	}
The gas and newstring stuff is just other stuff below it. But when I compile it my compiler just crashed. What's wrong with it?


Re: Scripting a text help! - Zack9764 - 16.03.2009

bump.


Anyone?


Re: Scripting a text help! - [RP]Rav - 16.03.2009

what's with the random brackets?


Re: Scripting a text help! - Zack9764 - 16.03.2009

What random brackets?


Re: Scripting a text help! - [RP]Rav - 16.03.2009

Код:
TextDrawSetShadow(Textdraw1,5);
{



Re: Scripting a text help! - Karlip - 16.03.2009

pawn Код:
public OnGameModeInit()
{
Textdraw0 = TextDrawCreate(-1.000000,66.000000," ");
Textdraw1 = TextDrawCreate(1.000000,417.000000,"My Text");
TextDrawAlignment(Textdraw0,0);
TextDrawAlignment(Textdraw1,0);
TextDrawBackgroundColor(Textdraw0,0x000000ff);
TextDrawBackgroundColor(Textdraw1,0x000000ff);
TextDrawFont(Textdraw0,3);
TextDrawLetterSize(Textdraw0,1.000000,1.000000);
TextDrawFont(Textdraw1,0);
TextDrawLetterSize(Textdraw1,1.000000,2.999463);
TextDrawColor(Textdraw0,0xffffffff);
TextDrawColor(Textdraw1,0x00ff00cc);
TextDrawSetOutline(Textdraw0,1);
TextDrawSetProportional(Textdraw0,1);
TextDrawSetProportional(Textdraw1,1);
TextDrawSetShadow(Textdraw0,1);
TextDrawSetShadow(Textdraw1,5);
// ==========================
new string[MAX_PLAYER_NAME];
new string1[MAX_PLAYER_NAME];
for(new c=0;c<CAR_AMOUNT;c++)
{
    Gas[c] = GasMax;
}



Re: Scripting a text help! - [M2S]moe - 16.03.2009

You're not opening your bracket right under OnGameModeInIt...