Filterscript map problem!
#1

Ok so I made a map using SAMP editor then I exported it as .pwn. I came up with 4 errors! Can anyone please help!

Код:
C:\Users\customer\Desktop\Sampserver\filterscripts\bhouse.pwn(1) : error 010: invalid function or declaration
C:\Users\customer\Desktop\Sampserver\filterscripts\bhouse.pwn(1) : error 010: invalid function or declaration
C:\Users\customer\Desktop\Sampserver\filterscripts\bhouse.pwn(1 -- 2) : error 021: symbol already defined: "RemoveBuildingForPlayer"
C:\Users\customer\Desktop\Sampserver\filterscripts\bhouse.pwn(1 -- 2) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Код:
RemoveBuildingForPlayer(playerid, 4504, 56.3828, -1531.4531, 6.7266, 0.25);
RemoveBuildingForPlayer(playerid, 4508, -953.8828, -271.2031, 38.4219, 0.25);
RemoveBuildingForPlayer(playerid, 4509, -981.9531, -410.1875, 38.4219, 0.25);
RemoveBuildingForPlayer(playerid, 4521, -84.6797, -909.3438, 18.2422, 0.25);
RemoveBuildingForPlayer(playerid, 4514, 440.0469, 587.4453, 19.7344, 0.25);
RemoveBuildingForPlayer(playerid, 4515, 604.5234, 352.5391, 19.7344, 0.25);
RemoveBuildingForPlayer(playerid, 4516, -141.3359, 468.6484, 12.9141, 0.25);
RemoveBuildingForPlayer(playerid, 4517, -193.8281, 269.5078, 12.8906, 0.25);
RemoveBuildingForPlayer(playerid, 4518, 1694.3203, 395.1094, 31.1641, 0.25);
RemoveBuildingForPlayer(playerid, 4519, 2766.8359, 323.8594, 9.1563, 0.25);
RemoveBuildingForPlayer(playerid, 4524, -1141.7188, 1098.0547, 39.4766, 0.25);
CreateObject(5333, 2977.37, -780.00, 18.53,   0.00, 0.00, 180.81);
CreateObject(5333, 3202.61, -776.84, 18.57,   0.00, 0.00, 0.78);
CreateObject(4652, 3289.22, -776.57, 10.06,   0.00, 0.00, 1.03);
CreateObject(5184, 3279.96, -720.44, 28.85,   0.00, 0.00, 180.63);
CreateObject(3331, 3280.28, -767.18, 18.91,   0.00, 0.00, 271.28);
CreateObject(16133, 3313.15, -789.23, -0.07,   0.00, 0.00, 259.34);
CreateObject(16133, 3269.53, -791.39, -0.04,   0.00, 0.00, 265.86);
CreateObject(16133, 3224.97, -792.80, -0.05,   0.00, 0.00, 265.33);
CreateObject(16133, 3342.86, -769.12, -1.30,   0.00, 0.00, 345.44);
CreateObject(16133, 3344.88, -727.91, -0.02,   0.00, 0.00, 0.00);
CreateObject(16133, 3326.87, -697.50, -1.76,   0.00, 0.00, 85.33);
CreateObject(16133, 3287.70, -697.87, -0.97,   0.00, 0.00, 90.12);
CreateObject(16133, 3244.03, -696.64, -0.03,   0.00, 0.00, 87.98);
CreateObject(16133, 3212.59, -715.82, -0.52,   0.00, 0.00, 171.24);
CreateObject(16133, 3211.80, -742.04, 0.98,   0.00, 0.00, 175.40);
CreateObject(16133, 3220.75, -764.62, -6.17,   0.00, 0.00, 175.57);
CreateObject(16122, -3709.22, 8703.94, -40.87,   0.00, 0.00, 0.00);
CreateObject(17030, 2964.53, -766.20, -0.08,   0.00, 0.00, 229.71);
CreateObject(17030, 3005.82, -767.82, 0.83,   0.00, 0.00, 234.32);
CreateObject(17030, 3038.06, -769.46, -0.04,   0.00, 0.00, 233.13);
CreateObject(17030, 3058.88, -767.35, -0.03,   0.00, 0.00, 234.12);
CreateObject(17030, 3091.19, -767.71, -0.04,   0.00, 0.00, 235.74);
CreateObject(17030, 3124.23, -766.94, -0.03,   0.00, 0.00, 232.15);
CreateObject(17030, 3156.13, -766.52, -0.78,   0.00, 0.00, 231.68);
CreateObject(17030, 3187.76, -766.18, -0.05,   0.00, 0.00, 233.96);
CreateObject(3605, 3234.08, -726.84, 15.99,   0.00, 0.00, 91.93);
CreateObject(17030, 2948.44, -793.72, -1.38,   0.00, 0.00, 60.61);
CreateObject(17030, 2980.69, -790.44, -0.74,   0.00, 0.00, 45.05);
CreateObject(17030, 3024.51, -794.31, -1.35,   0.00, 0.00, 48.36);
CreateObject(17030, 3008.52, -791.00, -1.28,   0.00, 0.00, 38.87);
CreateObject(17030, 3053.39, -794.08, -0.85,   0.00, 0.00, 56.96);
CreateObject(17030, 3083.15, -791.02, -1.25,   0.00, 0.00, 57.46);
CreateObject(17030, 3116.47, -788.16, -1.23,   0.00, 0.00, 52.03);
CreateObject(17030, 3162.89, -789.82, -0.03,   0.00, 0.00, 50.57);
CreateObject(17030, 3202.92, -791.58, 0.29,   0.00, 0.00, 52.72);
CreateObject(3604, 3326.43, -717.31, 12.18,   0.00, 0.00, 321.48);
CreateObject(3604, 3315.93, -708.86, 12.24,   0.00, 0.00, 321.00);
CreateObject(11326, 3229.47, -746.22, 12.22,   0.00, 0.00, 271.40);
CreateObject(615, 3295.35, -700.83, 8.00,   0.00, 0.00, 0.00);
CreateObject(615, 3278.72, -704.92, 8.09,   0.00, 0.00, 0.00);
CreateObject(615, 3252.77, -701.63, 8.71,   0.00, 0.00, 0.00);
CreateObject(615, 3339.59, -760.00, 9.97,   0.00, 0.00, 0.00);
CreateObject(615, 3341.66, -735.49, 9.35,   0.00, 0.00, 0.00);
CreateObject(615, 3339.18, -720.39, 7.42,   0.00, 0.00, 0.00);
CreateObject(3472, 3314.22, -766.68, 9.93,   0.00, 0.00, 0.00);
CreateObject(3472, 3314.59, -781.23, 10.20,   0.00, 0.00, 0.00);
CreateObject(6965, 3279.55, -738.32, 14.19,   0.00, 0.00, 0.00);
Reply
#2

Ok so I tried inserting it into my Gamemode. Grandlarceny. I get these errors!

Код:
C:\Users\customer\Desktop\Sampserver\gamemodes\grandlarc.pwn(519) : warning 203: symbol is never used: "gArmySpawns"
C:\Users\customer\Desktop\Sampserver\gamemodes\grandlarc.pwn(519) : warning 203: symbol is never used: "gMedicalSpawns"
C:\Users\customer\Desktop\Sampserver\gamemodes\grandlarc.pwn(519) : warning 203: symbol is never used: "gPoliceSpawns"
C:\Users\customer\Desktop\Sampserver\gamemodes\grandlarc.pwn(519) : warning 203: symbol is never used: "lastanimid"
C:\Users\customer\Desktop\Sampserver\gamemodes\grandlarc.pwn(519) : warning 203: symbol is never used: "thisanimid"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


5 Warnings.
Reply
#3

When I insert map:

Код:
C:\Users\customer\Desktop\Sampserver\gamemodes\grandlarc.pwn(437) : error 017: undefined symbol "playerid"
C:\Users\customer\Desktop\Sampserver\gamemodes\grandlarc.pwn(438) : error 017: undefined symbol "playerid"
C:\Users\customer\Desktop\Sampserver\gamemodes\grandlarc.pwn(439) : error 017: undefined symbol "playerid"
C:\Users\customer\Desktop\Sampserver\gamemodes\grandlarc.pwn(440) : error 017: undefined symbol "playerid"
C:\Users\customer\Desktop\Sampserver\gamemodes\grandlarc.pwn(441) : error 017: undefined symbol "playerid"
C:\Users\customer\Desktop\Sampserver\gamemodes\grandlarc.pwn(442) : error 017: undefined symbol "playerid"
C:\Users\customer\Desktop\Sampserver\gamemodes\grandlarc.pwn(443) : error 017: undefined symbol "playerid"
C:\Users\customer\Desktop\Sampserver\gamemodes\grandlarc.pwn(444) : error 017: undefined symbol "playerid"
C:\Users\customer\Desktop\Sampserver\gamemodes\grandlarc.pwn(445) : error 017: undefined symbol "playerid"
C:\Users\customer\Desktop\Sampserver\gamemodes\grandlarc.pwn(446) : error 017: undefined symbol "playerid"
C:\Users\customer\Desktop\Sampserver\gamemodes\grandlarc.pwn(447) : error 017: undefined symbol "playerid"
C:\Users\customer\Desktop\Sampserver\gamemodes\grandlarc.pwn(578) : warning 203: symbol is never used: "gArmySpawns"
C:\Users\customer\Desktop\Sampserver\gamemodes\grandlarc.pwn(578) : warning 203: symbol is never used: "gMedicalSpawns"
C:\Users\customer\Desktop\Sampserver\gamemodes\grandlarc.pwn(578) : warning 203: symbol is never used: "gPoliceSpawns"
C:\Users\customer\Desktop\Sampserver\gamemodes\grandlarc.pwn(578) : warning 203: symbol is never used: "lastanimid"
C:\Users\customer\Desktop\Sampserver\gamemodes\grandlarc.pwn(578) : warning 203: symbol is never used: "thisanimid"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


11 Errors.
Reply
#4

same prob to me bro. but mine is good server but it only dont load the map.
Reply
#5

1.You can use the Edit Button, no need to double post
2.the warnings of Grand Larcency are normal, dont mind em
3.The errors in grandlarcency are coming because you added the removebuildingforplayer codes somewhere where there is no playerid parameter, for example in ongamemodeinit.
Cut them from there and put them in OnPlayerConnect
Reply
#6

hey mine is loading but i can't see the objects, why ?
Reply
#7

Quote:
Originally Posted by Shane_Kingston
Посмотреть сообщение
hey mine is loading but i can't see the objects, why ?
You can put it in GM to OnGameModeInit().
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)