Trouble with creating map
#1

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;
}
Reply
#2

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)