Scripting a text help!
#1

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?
Reply
#2

bump.


Anyone?
Reply
#3

what's with the random brackets?
Reply
#4

What random brackets?
Reply
#5

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

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;
}
Reply
#7

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


Forum Jump:


Users browsing this thread: 2 Guest(s)