SA-MP Forums Archive
Map Helping. - 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)
+--- Thread: Map Helping. (/showthread.php?tid=622603)



Map Helping. - aymane123 - 24.11.2016

I Made a Map But I Dont Know How To Complie It Because I Have Errors I Dont Know What To Add Any Help ?


Re: Map Helping. - TonyII - 24.11.2016

Can you show us the errors?


Re: Map Helping. - Pearson - 24.11.2016

Hello. show us your errors bro.


Re: Map Helping. - RyderX - 24.11.2016

To complie your map in your gamemode you should put all map codes under public OnGameModeInit()


Re: Map Helping. - aymane123 - 25.11.2016

here is the code but idk where to put those things forgive me i am new to pawno:
Код:
RemoveBuildingForPlayer(playerid, 4523, -1592.7813, 622.7813, 42.9688, 0.25);
RemoveBuildingForPlayer(playerid, 4524, -1141.7188, 1098.0547, 39.4766, 0.25);
RemoveBuildingForPlayer(playerid, 4527, -1009.5859, 943.8125, 35.4766, 0.25);
CreateObject(987, -1392.54199, 847.91815, 10.65498,   0.00000, 0.00000, 0.00000);
CreateObject(987, -1380.50940, 847.94324, 10.66952,   0.00000, 0.00000, 0.00000);
CreateObject(987, -1368.37720, 847.79541, 10.74708,   0.00000, 0.00000, 0.00000);
CreateObject(987, -1356.34937, 847.72571, 10.82898,   0.00000, 0.00000, 0.00000);
CreateObject(987, -1344.15564, 847.62927, 10.86281,   0.00000, 0.00000, 0.00000);
CreateObject(987, -1332.26880, 847.36780, 11.06198,   0.00000, 0.00000, -89.34008);
CreateObject(987, -1332.11194, 835.38593, 11.05250,   0.00000, 0.00000, -89.70003);
CreateObject(987, -1332.02014, 823.45404, 11.05968,   0.00000, 0.00000, -90.00002);
CreateObject(14608, -1395.55505, 802.62415, 23.33109,   0.00000, 0.00000, 38.10000);
CreateObject(3876, -1330.72021, 809.53833, 11.05333,   0.00000, 0.00000, -5.52000);
CreateObject(987, -1329.28772, 810.14740, 11.06054,   0.00000, 0.00000, 0.00000);
CreateVehicle(446, -1278.9412, 730.8862, -0.0108, -179.4000, -1, -1, 100);
CreateVehicle(446, -1289.3125, 731.6751, -0.0145, -175.2599, -1, -1, 100);
CreateVehicle(446, -1308.0985, 734.9551, 0.0374, -177.4198, -1, -1, 100);
CreateVehicle(446, -1317.6559, 733.8820, 0.5428, -177.9600, -1, -1, 100);
CreateVehicle(429, -1348.1119, 782.3547, 11.9732, 0.0000, -1, -1, 100);
CreateVehicle(429, -1345.0581, 782.3599, 11.8503, 0.0000, -1, -1, 100);
CreateVehicle(415, -1347.9564, 764.6641, 12.0302, 0.0000, -1, -1, 100);
CreateVehicle(451, -1344.8804, 764.7250, 11.9967, 0.0000, -1, -1, 100);
CreateVehicle(415, -1339.0620, 782.4881, 12.0182, 0.0000, -1, -1, 100);
CreateVehicle(451, -1374.1577, 782.9344, 12.1875, 0.0000, -1, -1, 100);
CreateVehicle(409, -1368.8081, 765.6314, 11.7934, 0.0000, -1, -1, 100);
CreateVehicle(409, -1371.2758, 781.6823, 11.9833, 0.0000, -1, -1, 100);
CreateVehicle(411, -1356.7524, 765.0789, 11.9522, 0.0000, -1, -1, 100);
CreateVehicle(411, -1374.6198, 765.0350, 11.9828, 0.0000, -1, -1, 100);
CreateVehicle(446, -1278.9412, 730.8862, -0.0108, -179.4000, -1, -1, 100);
CreateVehicle(446, -1289.3125, 731.6751, -0.0145, -175.2599, -1, -1, 100);
CreateVehicle(446, -1308.0985, 734.9551, 0.0374, -177.4198, -1, -1, 100);
CreateVehicle(446, -1317.6559, 733.8820, 0.5428, -177.9600, -1, -1, 100);
CreateVehicle(429, -1348.1119, 782.3547, 11.9732, 0.0000, -1, -1, 100);
CreateVehicle(429, -1345.0581, 782.3599, 11.8503, 0.0000, -1, -1, 100);
CreateVehicle(415, -1347.9564, 764.6641, 12.0302, 0.0000, -1, -1, 100);
CreateVehicle(451, -1344.8804, 764.7250, 11.9967, 0.0000, -1, -1, 100);
CreateVehicle(415, -1339.0620, 782.4881, 12.0182, 0.0000, -1, -1, 100);
CreateVehicle(451, -1374.1577, 782.9344, 12.1875, 0.0000, -1, -1, 100);
CreateVehicle(409, -1368.8081, 765.6314, 11.7934, 0.0000, -1, -1, 100);
CreateVehicle(409, -1371.2758, 781.6823, 11.9833, 0.0000, -1, -1, 100);
CreateVehicle(411, -1356.7524, 765.0789, 11.9522, 0.0000, -1, -1, 100);
CreateVehicle(411, -1374.6198, 765.0350, 11.9828, 0.0000, -1, -1, 100);
Thx For Helping me out.


Re: Map Helping. - aymane123 - 25.11.2016

revive the topic !


Re: Map Helping. - Pearson - 25.11.2016

Hello.
PHP код:
RemoveBuildingForPlayer(playerid4523, -1592.7813622.781342.96880.25);
RemoveBuildingForPlayer(playerid4524, -1141.71881098.054739.47660.25);
RemoveBuildingForPlayer(playerid4527, -1009.5859943.812535.47660.25); 
Put this code under OnPlayerConnect.
PHP код:
CreateObject(987, -1392.54199847.9181510.65498,   0.000000.000000.00000);
CreateObject(987, -1380.50940847.9432410.66952,   0.000000.000000.00000);
CreateObject(987, -1368.37720847.7954110.74708,   0.000000.000000.00000);
CreateObject(987, -1356.34937847.7257110.82898,   0.000000.000000.00000);
CreateObject(987, -1344.15564847.6292710.86281,   0.000000.000000.00000);
CreateObject(987, -1332.26880847.3678011.06198,   0.000000.00000, -89.34008);
CreateObject(987, -1332.11194835.3859311.05250,   0.000000.00000, -89.70003);
CreateObject(987, -1332.02014823.4540411.05968,   0.000000.00000, -90.00002);
CreateObject(14608, -1395.55505802.6241523.33109,   0.000000.0000038.10000);
CreateObject(3876, -1330.72021809.5383311.05333,   0.000000.00000, -5.52000);
CreateObject(987, -1329.28772810.1474011.06054,   0.000000.000000.00000);
CreateVehicle(446, -1278.9412730.8862, -0.0108, -179.4000, -1, -1100);
CreateVehicle(446, -1289.3125731.6751, -0.0145, -175.2599, -1, -1100);
CreateVehicle(446, -1308.0985734.95510.0374, -177.4198, -1, -1100);
CreateVehicle(446, -1317.6559733.88200.5428, -177.9600, -1, -1100);
CreateVehicle(429, -1348.1119782.354711.97320.0000, -1, -1100);
CreateVehicle(429, -1345.0581782.359911.85030.0000, -1, -1100);
CreateVehicle(415, -1347.9564764.664112.03020.0000, -1, -1100);
CreateVehicle(451, -1344.8804764.725011.99670.0000, -1, -1100);
CreateVehicle(415, -1339.0620782.488112.01820.0000, -1, -1100);
CreateVehicle(451, -1374.1577782.934412.18750.0000, -1, -1100);
CreateVehicle(409, -1368.8081765.631411.79340.0000, -1, -1100);
CreateVehicle(409, -1371.2758781.682311.98330.0000, -1, -1100);
CreateVehicle(411, -1356.7524765.078911.95220.0000, -1, -1100);
CreateVehicle(411, -1374.6198765.035011.98280.0000, -1, -1100);
CreateVehicle(446, -1278.9412730.8862, -0.0108, -179.4000, -1, -1100);
CreateVehicle(446, -1289.3125731.6751, -0.0145, -175.2599, -1, -1100);
CreateVehicle(446, -1308.0985734.95510.0374, -177.4198, -1, -1100);
CreateVehicle(446, -1317.6559733.88200.5428, -177.9600, -1, -1100);
CreateVehicle(429, -1348.1119782.354711.97320.0000, -1, -1100);
CreateVehicle(429, -1345.0581782.359911.85030.0000, -1, -1100);
CreateVehicle(415, -1347.9564764.664112.03020.0000, -1, -1100);
CreateVehicle(451, -1344.8804764.725011.99670.0000, -1, -1100);
CreateVehicle(415, -1339.0620782.488112.01820.0000, -1, -1100);
CreateVehicle(451, -1374.1577782.934412.18750.0000, -1, -1100);
CreateVehicle(409, -1368.8081765.631411.79340.0000, -1, -1100);
CreateVehicle(409, -1371.2758781.682311.98330.0000, -1, -1100);
CreateVehicle(411, -1356.7524765.078911.95220.0000, -1, -1100);
CreateVehicle(411, -1374.6198765.035011.98280.0000, -1, -1100); 
And this code under ongamemodeinit.


Re: Map Helping. - aymane123 - 25.11.2016

Bro that is the problem i am noob even i dont know where to write OnGameModeInItcan u make it up for me ??


Re: Map Helping. - Pearson - 25.11.2016

Maybe ongamemodeinit is arleday created.


Re: Map Helping. - aymane123 - 25.11.2016

Код:
public OnGameModeInit()
{
	// Don't use these lines if it's a filterscript
	SetGameModeText("Blank Script");
	AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
	return 1;
}
Where exactlly ?? Forgive me i am noob