Need help!
#1

Lines:
Код HTML:
{
	// Don't use these lines if it's a filterscript
	SetGameModeText("War Thunder v.1.0");
	AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    // Fuelmeter
	fuelmeter = TextDrawCreate(200.000000, 432.000000, "Fuel:");
	TextDrawBackgroundColor(fuelmeter, 255);
	TextDrawFont(fuelmeter, 1);
	TextDrawLetterSize(fuelmeter, 0.500000, 1.000000);
	TextDrawColor(fuelmeter, 16777215);
	TextDrawSetOutline(fuelmeter, 0);
	TextDrawSetProportional(fuelmeter, 1);
	TextDrawSetShadow(fuelmeter, 1);
	TextDrawSetSelectable(fuelmeter, 0);

	// Speedometer
	speedometer = TextDrawCreate(292.000000, 432.000000, "MPH:");
	TextDrawBackgroundColor(speedometer, 255);
	TextDrawFont(speedometer, 1);
	TextDrawLetterSize(speedometer, 0.500000, 1.000000);
	TextDrawColor(speedometer, 16777215);
	TextDrawSetOutline(speedometer, 0);
	TextDrawSetProportional(speedometer, 1);
	TextDrawSetShadow(speedometer, 1);
	TextDrawSetSelectable(speedometer, 0);
    return 1;
}
Errors:
Код HTML:
C:\Users\JACOLA03\Desktop\war thunder\gamemodes\warthunder.pwn(44) : warning 217: loose indentation
C:\Users\JACOLA03\Desktop\war thunder\gamemodes\warthunder.pwn(44) : error 029: invalid expression, assumed zero
C:\Users\JACOLA03\Desktop\war thunder\gamemodes\warthunder.pwn(45) : warning 217: loose indentation
C:\Users\JACOLA03\Desktop\war thunder\gamemodes\warthunder.pwn(45) : error 029: invalid expression, assumed zero
C:\Users\JACOLA03\Desktop\war thunder\gamemodes\warthunder.pwn(45) : warning 215: expression has no effect
C:\Users\JACOLA03\Desktop\war thunder\gamemodes\warthunder.pwn(45) : error 001: expected token: ";", but found ")"
C:\Users\JACOLA03\Desktop\war thunder\gamemodes\warthunder.pwn(45) : error 029: invalid expression, assumed zero
C:\Users\JACOLA03\Desktop\war thunder\gamemodes\warthunder.pwn(45) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


5 Errors.
Reply
#2

which lines are 44 and 45 ?
Reply
#3

fuelmeter = TextDrawCreate(200.000000, 432.000000, "Fuel:");
TextDrawBackgroundColor(fuelmeter, 255);
Reply
#4

Can you help me? thats would be very kind .
Reply
#5

Did you defined them like
pawn Код:
new Text:fuelmeter;
Reply
#6

Gives me errors anyway.

Quote:

C:\Users\JACOLA03\Desktop\war thunder\gamemodes\warthunder.pwn(46) : warning 217: loose indentation
C:\Users\JACOLA03\Desktop\war thunder\gamemodes\warthunder.pwn(46) : error 029: invalid expression, assumed zero
C:\Users\JACOLA03\Desktop\war thunder\gamemodes\warthunder.pwn(47) : warning 217: loose indentation
C:\Users\JACOLA03\Desktop\war thunder\gamemodes\warthunder.pwn(47) : error 029: invalid expression, assumed zero
C:\Users\JACOLA03\Desktop\war thunder\gamemodes\warthunder.pwn(47) : warning 215: expression has no effect
C:\Users\JACOLA03\Desktop\war thunder\gamemodes\warthunder.pwn(47) : error 001: expected token: ";", but found ")"
C:\Users\JACOLA03\Desktop\war thunder\gamemodes\warthunder.pwn(47) : error 029: invalid expression, assumed zero
C:\Users\JACOLA03\Desktop\war thunder\gamemodes\warthunder.pwn(47) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


7 Errors.

Quote:

fuelmeter = TextDrawCreate(200.000000, 432.000000, "Fuel:");
TextDrawBackgroundColor(fuelmeter, 255);

Reply
#7

new Text: speedometer;
Reply
#8

try to define the other one
pawn Код:
new Text:speedometer;
Reply
#9

Yay it works now thanks alot im repped you both !.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)