Map Problem
#1

Hello,
Guys im putting my map like this:
Код:
#include <a_samp>

#pragma tabsize 0


public OnFilterScriptInit()
{
	print("\n--------------------------------------");
	print(" Montgomery Airport");
	print("--------------------------------------\n");
RemoveBuildingForPlayer(playerid, 709, 1076.2266, 501.5859, 19.1094, 0.25);
RemoveBuildingForPlayer(playerid, 705, 1195.8203, 455.7109, 21.5469, 0.25);
RemoveBuildingForPlayer(playerid, 690, 1285.0313, 459.9844, 16.6172, 0.25);
RemoveBuildingForPlayer(playerid, 706, 1132.6172, 486.4531, 22.2109, 0.25);
CreateObject(4571, 1241.49, 480.68, -36.13,   0.00, 0.00, -26.00);
CreateObject(4571, 1191.01, 505.30, -36.13,   0.00, 0.00, -26.00);
CreateObject(4571, 1136.68, 531.84, -36.13,   0.00, 0.00, -26.00);
CreateObject(4571, 1126.34, 536.70, -36.13,   0.00, 0.00, -26.00);
CreateObject(4571, 1224.95, 445.66, -36.13,   0.00, 0.00, -26.00);
CreateObject(4571, 1271.59, 466.05, -36.13,   0.00, 0.00, -26.00);
CreateObject(4571, 1254.53, 431.08, -36.13,   0.00, 0.00, -26.00);
CreateObject(4571, 1223.89, 407.06, -36.13,   0.00, 0.00, -296.00);
CreateObject(3998, 1279.42, 449.82, 14.85,   0.00, 0.00, -26.00);
CreateObject(3998, 1256.67, 460.83, 14.85,   0.00, 0.00, -26.00);
CreateObject(3998, 1233.75, 471.88, 14.85,   0.00, 0.00, -26.00);
CreateObject(3998, 1211.01, 482.96, 14.85,   0.00, 0.00, -26.00);
CreateObject(3998, 1188.39, 494.03, 14.85,   0.00, 0.00, -26.00);
CreateObject(3998, 1165.95, 504.94, 14.85,   0.00, 0.00, -26.00);
CreateObject(3998, 1143.58, 515.77, 14.85,   0.00, 0.00, -26.00);
CreateObject(3998, 1120.90, 526.82, 14.85,   0.00, 0.00, -26.00);
CreateObject(3998, 1107.02, 533.55, 14.85,   0.00, 0.00, -26.00);
CreateObject(3998, 1244.17, 443.12, 14.85,   0.00, 0.00, -26.00);
CreateObject(3998, 1234.86, 423.87, 14.85,   0.00, 0.00, -26.00);
CreateObject(13681, 1215.01, 389.42, 32.54,   0.00, 0.00, 154.00);
CreateObject(3998, 1225.39, 404.76, 14.85,   0.00, 0.00, -26.00);
CreateObject(4571, 1170.97, 471.96, -36.13,   0.00, 0.00, -26.00);
CreateObject(4571, 1109.51, 501.81, -36.13,   0.00, 0.00, -26.00);
CreateObject(4571, 1117.59, 497.94, -36.13,   0.00, 0.00, -26.00);
CreateObject(3578, 1240.36, 436.63, 27.37,   0.00, 0.00, 64.00);
CreateObject(3578, 1229.51, 414.58, 27.37,   0.00, 0.00, 64.00);
CreateObject(3578, 1249.82, 455.95, 27.37,   0.00, 0.00, 64.00);
CreateObject(3578, 1285.82, 458.21, 27.37,   0.00, 0.00, 154.00);
CreateObject(3578, 1265.44, 468.12, 27.37,   0.00, 0.00, 154.00);
CreateObject(3578, 1244.69, 478.31, 27.37,   0.00, 0.00, 154.00);
CreateObject(3578, 1222.60, 489.25, 27.37,   0.00, 0.00, 154.00);
CreateObject(3578, 1200.33, 499.88, 27.37,   0.00, 0.00, 154.00);
CreateObject(3578, 1105.11, 545.73, 27.37,   0.00, 0.00, 154.00);
CreateObject(3578, 1177.64, 510.56, 27.37,   0.00, 0.00, 154.00);
CreateObject(3578, 1151.07, 523.53, 27.37,   0.00, 0.00, 154.00);
CreateObject(3578, 1151.07, 523.53, 27.37,   0.00, 0.00, 154.00);
CreateObject(3578, 1127.68, 534.69, 27.37,   0.00, 0.00, 154.00);
CreateObject(3578, 1127.68, 534.69, 27.37,   0.00, 0.00, 154.00);
CreateObject(987, 1289.88, 435.36, 27.85,   0.00, 0.00, -116.00);
CreateObject(987, 1284.69, 424.63, 27.85,   0.00, 0.00, -116.00);
CreateObject(987, 1279.47, 413.88, 27.85,   0.00, 0.00, -116.00);
CreateObject(987, 1278.21, 411.29, 27.85,   0.00, 0.00, -116.00);
CreateObject(987, 1272.94, 400.53, 27.85,   0.00, 0.00, -207.00);
CreateObject(987, 1262.29, 405.95, 27.85,   0.00, 0.00, -207.00);
CreateObject(987, 1258.63, 407.82, 27.85,   0.00, 0.00, -207.00);
CreateObject(987, 1248.05, 413.28, 27.85,   0.00, 0.00, -116.00);
CreateObject(987, 1242.86, 402.51, 27.85,   0.00, 0.00, -116.00);
CreateObject(987, 1237.59, 391.79, 27.85,   0.00, 0.00, -116.00);
CreateObject(987, 1232.32, 381.01, 27.85,   0.00, 0.00, -116.00);
CreateObject(987, 1227.40, 370.86, 27.85,   0.00, 0.00, -207.00);
CreateObject(987, 1216.76, 376.31, 27.85,   0.00, 0.00, -207.00);
CreateObject(987, 1206.08, 381.74, 27.85,   0.00, 0.00, -207.00);
CreateObject(987, 1203.76, 382.93, 27.85,   0.00, 0.00, -207.00);
CreateObject(987, 1198.42, 399.15, 27.85,   0.00, 0.00, -116.00);
CreateObject(987, 1203.64, 409.89, 27.85,   0.00, 0.00, -116.00);
CreateObject(987, 1208.98, 420.64, 27.85,   0.00, 0.00, -116.00);
CreateObject(987, 1213.72, 430.35, 27.85,   0.00, 0.00, -116.00);
CreateObject(987, 1213.63, 430.43, 27.85,   0.00, 0.00, -207.00);
CreateObject(987, 1202.97, 435.84, 27.85,   0.00, 0.00, -207.00);
CreateObject(987, 1192.31, 441.26, 27.85,   0.00, 0.00, -207.00);
CreateObject(987, 1181.69, 446.68, 27.85,   0.00, 0.00, -207.00);
CreateObject(987, 1171.04, 452.08, 27.85,   0.00, 0.00, -207.00);
CreateObject(987, 1160.41, 457.52, 27.85,   0.00, 0.00, -207.00);
CreateObject(987, 1149.79, 462.93, 27.85,   0.00, 0.00, -207.00);
CreateObject(987, 1139.15, 468.34, 27.85,   0.00, 0.00, -207.00);
CreateObject(987, 1128.54, 473.74, 27.85,   0.00, 0.00, -207.00);
CreateObject(987, 1117.84, 479.14, 27.85,   0.00, 0.00, -207.00);
CreateObject(987, 1107.14, 484.50, 27.85,   0.00, 0.00, -207.00);
CreateObject(987, 1096.46, 489.86, 27.85,   0.00, 0.00, -207.00);
CreateObject(987, 1085.80, 495.25, 27.85,   0.00, 0.00, -207.00);
CreateObject(12913, 1271.85, 407.69, 29.63,   0.00, 0.00, -27.00);
CreateObject(17055, 1261.31, 413.31, 29.97,   0.00, 0.00, -26.00);
return 1;
}
Error is coming:
Код:
C:\Documents and Settings\User\Desktop\server\filterscripts\montgomery.pwn(11) : error 017: undefined symbol "playerid"
C:\Documents and Settings\User\Desktop\server\filterscripts\montgomery.pwn(12) : error 017: undefined symbol "playerid"
C:\Documents and Settings\User\Desktop\server\filterscripts\montgomery.pwn(13) : error 017: undefined symbol "playerid"
C:\Documents and Settings\User\Desktop\server\filterscripts\montgomery.pwn(14) : error 017: undefined symbol "playerid"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Need Help !!
Reply
#2

For this type of errors
Quote:

C:\Documents and Settings\User\Desktop\server\filterscripts\montgom ery.pwn(14) : error 017: undefined symbol "playerid"

Use
pawn Код:
new playerid;
Reply
#3

move RemoveBuildingForPlayer to OnPlayerConnect

@IronBoy Trolololz!!!
Reply
#4

thx IronBoy it works !!!!
Reply
#5

Quote:
Originally Posted by Reklez
Посмотреть сообщение
move RemoveBuildingForPlayer to OnPlayerConnect

@IronBoy Trolololz!!!
As i told, for undefined symbol "playerid
You must use "new playerid;"
And i checked only the errors :/
Reply
#6

Move RemoveBuildingForPlayer to OnPlayerConnect or the buildings won't be removed for players..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)