SA-MP Forums Archive
Load vehicle - 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: Load vehicle (/showthread.php?tid=403308)



Load vehicle - Bug. - 29.12.2012

Yo, what a problem with it,
Код:
public OnGameModeInit()
{
	total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/trains.txt");
	total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/pilots.txt");
	return 1;
}
How to fix it?!
Код:
D:\PFiles\Plugins\Firefox Plugin\xFile\Hide\Mods&Tools\samp03e_svr_R2_win32\gamemodes\D.pwn(35) : error 017: undefined symbol "total_vehicles_from_files"
D:\PFiles\Plugins\Firefox Plugin\xFile\Hide\Mods&Tools\samp03e_svr_R2_win32\gamemodes\D.pwn(35) : error 017: undefined symbol "LoadStaticVehiclesFromFile"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.



Re: Load vehicle - aslan890 - 29.12.2012

Код:
new total_vehicles_from_files;
and send me the top of the [GM] let me see the codes


Re: Load vehicle - Threshold - 30.12.2012

You are missing an include, I cannot remember the exact name of it, but I slightly remember something like 'gl_common', try adding this to the top of your script:
pawn Код:
#include <gl_common>