SA-MP Forums Archive
Pawno error 049 - 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: Pawno error 049 (/showthread.php?tid=420185)



Pawno error 049 - Gecko75 - 03.03.2013

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.


Re: Pawno error 049 - park4bmx - 03.03.2013

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 //


Re: Pawno error 049 - Nathan_Taylor - 03.03.2013

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


Re: Pawno error 049 - Gecko75 - 03.03.2013

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.


Re: Pawno error 049 - Nathan_Taylor - 03.03.2013

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


Re: Pawno error 049 - Gecko75 - 03.03.2013

Works. Thanks!