16.07.2016, 14:15
Hi guys. I was testing out the map editor application for GTA:SA and added it to my script. Got complex errors after re-compiling it. Here it is
Here's the code from line "19017" to "19036"
And yes, I added it to the public OnGamemodeInit callback. Don't even mind to try and test the map. Believe me, it sucks. Was just testing it. Also, my friend, the scripter of this script but not the map, said use CreateDynamicObject when mapping. So, I have no choice than to use it rather than CreateObject.
PHP код:
(19017) : error 017: undefined symbol "playerid"
(19018) : error 017: undefined symbol "playerid"
(19019) : error 017: undefined symbol "playerid"
(19020) : error 017: undefined symbol "playerid"
(19021) : error 017: undefined symbol "playerid"
(19022) : error 017: undefined symbol "playerid"
(19023) : error 017: undefined symbol "playerid"
(19024) : error 017: undefined symbol "playerid"
(19025) : error 017: undefined symbol "playerid"
(19026) : error 017: undefined symbol "playerid"
(19027) : error 017: undefined symbol "playerid"
(19028) : error 017: undefined symbol "playerid"
(19029) : error 017: undefined symbol "playerid"
(19030) : error 017: undefined symbol "playerid"
(19031) : error 017: undefined symbol "playerid"
(19032) : error 017: undefined symbol "playerid"
(19033) : error 017: undefined symbol "playerid"
(19034) : error 017: undefined symbol "playerid"
(19035) : error 017: undefined symbol "playerid"
(19036) : error 017: undefined symbol "playerid"
PHP код:
RemoveBuildingForPlayer(playerid, 3658, 1678.3516, -2335.4453, -3.1172, 0.25);
RemoveBuildingForPlayer(playerid, 3658, 1693.6563, -2335.4375, -3.1172, 0.25);
RemoveBuildingForPlayer(playerid, 1290, 1691.9531, -2313.9766, 1.8359, 0.25);
RemoveBuildingForPlayer(playerid, 792, 1128.7344, -1518.4922, 15.2109, 0.25);
RemoveBuildingForPlayer(playerid, 792, 1111.2578, -1512.3594, 15.2109, 0.25);
RemoveBuildingForPlayer(playerid, 792, 1106.4375, -1501.3750, 15.2109, 0.25);
RemoveBuildingForPlayer(playerid, 792, 1144.3984, -1512.7891, 15.2109, 0.25);
RemoveBuildingForPlayer(playerid, 792, 1152.3828, -1502.5391, 15.2109, 0.25);
RemoveBuildingForPlayer(playerid, 792, 1118.0156, -1467.4688, 15.2109, 0.25);
RemoveBuildingForPlayer(playerid, 792, 1139.9219, -1467.4688, 15.2109, 0.25);
RemoveBuildingForPlayer(playerid, 792, 1139.9219, -1456.4375, 15.2109, 0.25);
RemoveBuildingForPlayer(playerid, 792, 1118.0156, -1456.4375, 15.2109, 0.25);
RemoveBuildingForPlayer(playerid, 792, 1139.9219, -1445.1016, 15.2109, 0.25);
RemoveBuildingForPlayer(playerid, 792, 1118.0156, -1445.1016, 15.2109, 0.25);
RemoveBuildingForPlayer(playerid, 792, 1139.9219, -1434.0703, 15.2109, 0.25);
RemoveBuildingForPlayer(playerid, 792, 1118.0156, -1434.0703, 15.2109, 0.25);
RemoveBuildingForPlayer(playerid, 1440, 1085.7031, -1361.0234, 13.2656, 0.25);
RemoveBuildingForPlayer(playerid, 5811, 1131.1953, -1380.4219, 17.0703, 0.25);
RemoveBuildingForPlayer(playerid, 1440, 1141.9844, -1346.1094, 13.2656, 0.25);
RemoveBuildingForPlayer(playerid, 1440, 1148.6797, -1385.1875, 13.2656, 0.25);
CreateDynamicObject(1257, 1676.42407, -2325.14526, -2.57113, 0.00000, 0.00000, -90.12000);
CreateDynamicObject(1257, 1688.12805, -2313.27734, -2.57113, 0.00000, 0.00000, 90.00002);
CreateDynamicObject(19911, 1142.49597, -1369.58289, 15.97155, 0.00000, 0.00000, 89.22002);
CreateDynamicObject(19911, 1151.96509, -1369.75305, 15.97155, 0.00000, 0.00000, 89.22002);
CreateDynamicObject(19911, 1087.46008, -1369.10327, 15.97155, 0.00000, 0.00000, 89.22002);
CreateDynamicObject(19911, 1097.12610, -1369.15271, 15.97155, 0.00000, 0.00000, 89.22002);
CreateDynamicObject(3660, 1129.15894, -1384.00500, 15.36556, 0.00000, 0.00000, 0.00000);
CreateDynamicObject(3660, 1109.56152, -1384.01196, 15.36556, 0.00000, 0.00000, 0.00000);
CreateDynamicObject(3660, 1099.75281, -1384.02014, 15.36556, 0.00000, 0.00000, 0.00000);
CreateDynamicObject(8661, 1089.67969, -1377.68396, 13.13371, 0.00000, 0.00000, 0.00000);
CreateDynamicObject(8661, 1129.41064, -1377.71692, 13.13371, 0.00000, 0.00000, 0.00000);