Load vehicle
#1

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.
Reply
#2

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)