SA-MP Forums Archive
4 errors on one line, help please! - 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: 4 errors on one line, help please! (/showthread.php?tid=473126)



4 errors on one line, help please! - Songason - 01.11.2013

Alright I got these errors:
Код:
C:\Users\Sonny\Documents\scripting suite\New LSRRP\LSRRP2(16933) : error 028: invalid subscript (not an array or too many subscripts): "iIndex"
C:\Users\Sonny\Documents\scripting suite\New LSRRP\LSRRP2(16933) : warning 215: expression has no effect
C:\Users\Sonny\Documents\scripting suite\New LSRRP\LSRRP2(16933) : error 001: expected token: ";", but found "]"
C:\Users\Sonny\Documents\scripting suite\New LSRRP\LSRRP2(16933) : error 029: invalid expression, assumed zero
C:\Users\Sonny\Documents\scripting suite\New LSRRP\LSRRP2(16933) : fatal error 107: too many error messages on one line
on this line:
Код:
FamilyVehicleInfo[f][fv][fvColor1] = 126;



Re: 4 errors on one line, help please! - Pottus - 01.11.2013

Remove [fv] most likely.

@Derp - I didn't scroll all the way over Konst.... it looked like there was too many dimensions I thought he was looping there


Re: 4 errors on one line, help please! - Konstantinos - 01.11.2013

It says about "iIndex", do you use iIndex in the above/below line at all?

If the error was about that line, then it'd say about "FamilyVehicleInfo" and that would mean that it was not 3D [f][fv][fvColor1].


Re: 4 errors on one line, help please! - Songason - 01.11.2013

Quote:
Originally Posted by [uL]Pottus
Посмотреть сообщение
Remove [fv] most likely.
But that [fv] is in almost every 5 lines before that which are not giving errors:

Код:
 FamilyVehicleInfo[f][fv][fvModelId] = 0;
			FamilyVehicleInfo[f][fv][fvSpawnx] = 0.0;
			FamilyVehicleInfo[f][fv][fvSpawny] = 0.0;
			FamilyVehicleInfo[f][fv][fvSpawnz] = 0.0;
			FamilyVehicleInfo[f][fv][fvSpawna] = 0.0;
			FamilyVehicleInfo[f][fv][fvPaintJob] = -1;
			FamilyVehicleInfo[f][fv][fvColor1] = 126; //<<<<Line with error
			FamilyVehicleInfo[f][fv][fvColor2] = 126;
			FamilyVehicleInfo[f][fv][fvPrice] = 0;
			FamilyVehicleInfo[f][fv][fvFuel] = 100.00;
	    	FamilyVehicleInfo[f][fv][fvId] = INVALID_VEHICLE_ID;