SA-MP Forums Archive
Trouble with creating map - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Trouble with creating map (/showthread.php?tid=161036)



Trouble with creating map - Яσскѕтая - 18.07.2010

I'm trying to create a small map and when I compile it into a FS I get these errors:
Код:
C:\Servers\SA-MP\filterscripts\MMT.pwn(33) : error 017: undefined symbol "gate"
C:\Servers\SA-MP\filterscripts\MMT.pwn(34) : error 017: undefined symbol "gate2"
C:\Servers\SA-MP\filterscripts\MMT.pwn(39) : error 017: undefined symbol "gate"
C:\Servers\SA-MP\filterscripts\MMT.pwn(40) : error 017: undefined symbol "gate2"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Here's the script:
Код:
public OnFilterScriptInit()
{
	print("UGMMT Map By Rockstar.");
	AddStaticVehicleEx(444,-3289.74511719,1433.73767090,7.48990631,0.00000000,1,1,250); //Monster
	AddStaticVehicleEx(444,-3285.17236328,1434.45947266,7.73990631,6.00000000,1,1,250); //Monster
	CreateObject(4152,-2804.53857422,1468.23974609,6.50000000,0.00000000,0.00000000,270.00000000); //object(roads15_lan) (1)
	CreateObject(4152,-2935.55029297,1468.32531738,6.51009178,0.00000000,0.00000000,270.00000000); //object(roads15_lan) (2)
	CreateObject(4152,-3064.84350586,1468.25207520,6.52797890,0.00000000,0.00000000,270.00000000); //object(roads15_lan) (3)
	CreateObject(4152,-3192.55395508,1468.17114258,6.53807068,0.00000000,0.00000000,270.00000000); //object(roads15_lan) (4)
	CreateObject(3749,-2729.43798828,1468.26855469,12.44435215,0.00000000,0.00000000,90.00000000); //object(clubgate01_lax) (1)
	CreateObject(4152,-2789.44262695,1468.16125488,6.51009178,0.00000000,0.00000000,270.00000000); //object(roads15_lan) (5)
	CreateObject(13607,-3296.31372070,1468.12646484,10.02896881,0.00000000,0.00000000,0.00000000); //object(ringwalls) (1)
	gate = CreateObject(971,-2728.18774414,1472.72607422,10.00000000,0.00000000,0.00000000,90.00000000); //object(subwaygate) (1)
	gate2 = CreateObject(971,-2728.20751953,1463.90002441,10.00000000,0.00000000,0.00000000,90.00000000); //object(subwaygate) (2)
	return 1;
}
Here's where I am getting the errors:
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
	if(strcmp("/mmto", cmdtext, true, 10) == 0)
	{
		MoveObject(gate,-2728.18774414,1472.72607422,15.00000000,1);
		MoveObject(gate2,-3296.31372070,1468.12646484,15.00000000,1);
		return 1;
	}
	if(strcmp("/mmtc", cmdtext, true, 10) == 0)
	{
	    MoveObject(gate,-2728.18774414,1472.72607422,10.00000000,1);
	    MoveObject(gate2,-2728.20751953,1463.90002441,10.00000000,1);
	}
	return 0;
}



Re: Trouble with creating map - TouR - 18.07.2010

Код:
new gate, gate2; //at the top of your script



Re: Trouble with creating map - Яσскѕтая - 18.07.2010

Quote:
Originally Posted by tour15
Посмотреть сообщение
Код:
new gate, gate2; //at the top of your script
Still getting the errors.
EDIT: Thanks found the problem.