Pawno error 049
#1

I have these lines: 6735 to 6742.
One is giving me an error, and I cant fix it.

the weird indent is not in the script.
Код:
AddStaticVehicleEx(599,1600.7094,-1704.1493,5.9016,88.2355,1, 1, 0); // Ranger
	 AddStaticVehicleEx(601,1562.8129,-1694.0352,5.6505,178.5429,1, 1, 0); // TRU
	 AddStaticVehicleEx(400,1566.2850,-1694.3240,5.9830,178.9517,1, 1, 0); // Lamd\
   	 AddStaticVehicleEx(405,-2062.4253,-117.6652,34.9347,180.8394,17, 17, 60000);//Driving 
	 AddStaticVehicleEx(434,551.7929,-1285.5260,16.9303,0.4147,-1, -1, 60000);//Rent car/*Hotknife*/
	 AddStaticVehicleEx(568,536.9888,-1286.5275,16.9993,359.1704,-1, -1, 60000); //Rent car/*Bandito*/
	 AddStaticVehicleEx(434,544.1793,-1286.1422,16.9492,7.3116,-1, -1, 60000);//Rent car/*Hotknife*/
	 AddStaticVehicleEx(434,-1949.9493,258.1949,35.1922,70.7581,-1, -1, 60000); //Rent car/*Hotknife*/
And its this error:
Код:
C:\Users\Scoot\Desktop\XMG RP\GameModes\gf.pwn(2150) : warning 209: function "OnPlayerConnect" should return a value
C:\Users\Scoot\Desktop\XMG RP\GameModes\gf.pwn(6738) : error 049: invalid line continuation
Pawn compiler 3.0.3367			Copyright © 1997-2005, ITB CompuPhase


1 Error.
Dont worry about the warning.
Reply
#2

The way u have commented out the vehicle names doesn't look good
edit in this case using /* */ in a single line makes no sense when you have //
Reply
#3

Yea, what he said.... The way you commented the cars is odd. I think you either have to use "/* */" or "//"

In reference to: https://sampforum.blast.hk/showthread.php?tid=79762
Reply
#4

I put the space, it still doesnt work.

C:\Users\Scoot\Desktop\XMG RP\GameModes\gf.pwn(673 : error 049: invalid line continuation
Pawn compiler 3.0.3367 Copyright © 1997-2005, ITB CompuPhase


1 Error.
Reply
#5

Quote:
Originally Posted by Gecko75
Посмотреть сообщение
I put the space, it still doesnt work.

C:\Users\Scoot\Desktop\XMG RP\GameModes\gf.pwn(673 : error 049: invalid line continuation
Pawn compiler 3.0.3367 Copyright © 1997-2005, ITB CompuPhase


1 Error.
Edited my comment, look above
Reply
#6

Works. Thanks!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)