Mapping problem
#1

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
PHP код:
(19017) : error 017undefined symbol "playerid"
(19018) : error 017undefined symbol "playerid"
(19019) : error 017undefined symbol "playerid"
(19020) : error 017undefined symbol "playerid"
(19021) : error 017undefined symbol "playerid"
(19022) : error 017undefined symbol "playerid"
(19023) : error 017undefined symbol "playerid"
(19024) : error 017undefined symbol "playerid"
(19025) : error 017undefined symbol "playerid"
(19026) : error 017undefined symbol "playerid"
(19027) : error 017undefined symbol "playerid"
(19028) : error 017undefined symbol "playerid"
(19029) : error 017undefined symbol "playerid"
(19030) : error 017undefined symbol "playerid"
(19031) : error 017undefined symbol "playerid"
(19032) : error 017undefined symbol "playerid"
(19033) : error 017undefined symbol "playerid"
(19034) : error 017undefined symbol "playerid"
(19035) : error 017undefined symbol "playerid"
(19036) : error 017undefined symbol "playerid" 
Here's the code from line "19017" to "19036"
PHP код:
        RemoveBuildingForPlayer(playerid36581678.3516, -2335.4453, -3.11720.25);
    
RemoveBuildingForPlayer(playerid36581693.6563, -2335.4375, -3.11720.25);
    
RemoveBuildingForPlayer(playerid12901691.9531, -2313.97661.83590.25);
    
RemoveBuildingForPlayer(playerid7921128.7344, -1518.492215.21090.25);
    
RemoveBuildingForPlayer(playerid7921111.2578, -1512.359415.21090.25);
    
RemoveBuildingForPlayer(playerid7921106.4375, -1501.375015.21090.25);
    
RemoveBuildingForPlayer(playerid7921144.3984, -1512.789115.21090.25);
    
RemoveBuildingForPlayer(playerid7921152.3828, -1502.539115.21090.25);
    
RemoveBuildingForPlayer(playerid7921118.0156, -1467.468815.21090.25);
    
RemoveBuildingForPlayer(playerid7921139.9219, -1467.468815.21090.25);
    
RemoveBuildingForPlayer(playerid7921139.9219, -1456.437515.21090.25);
    
RemoveBuildingForPlayer(playerid7921118.0156, -1456.437515.21090.25);
    
RemoveBuildingForPlayer(playerid7921139.9219, -1445.101615.21090.25);
    
RemoveBuildingForPlayer(playerid7921118.0156, -1445.101615.21090.25);
    
RemoveBuildingForPlayer(playerid7921139.9219, -1434.070315.21090.25);
    
RemoveBuildingForPlayer(playerid7921118.0156, -1434.070315.21090.25);
    
RemoveBuildingForPlayer(playerid14401085.7031, -1361.023413.26560.25);
    
RemoveBuildingForPlayer(playerid58111131.1953, -1380.421917.07030.25);
    
RemoveBuildingForPlayer(playerid14401141.9844, -1346.109413.26560.25);
    
RemoveBuildingForPlayer(playerid14401148.6797, -1385.187513.26560.25);
    
CreateDynamicObject(12571676.42407, -2325.14526, -2.57113,   0.000000.00000, -90.12000);
    
CreateDynamicObject(12571688.12805, -2313.27734, -2.57113,   0.000000.0000090.00002);
    
CreateDynamicObject(199111142.49597, -1369.5828915.97155,   0.000000.0000089.22002);
    
CreateDynamicObject(199111151.96509, -1369.7530515.97155,   0.000000.0000089.22002);
    
CreateDynamicObject(199111087.46008, -1369.1032715.97155,   0.000000.0000089.22002);
    
CreateDynamicObject(199111097.12610, -1369.1527115.97155,   0.000000.0000089.22002);
    
CreateDynamicObject(36601129.15894, -1384.0050015.36556,   0.000000.000000.00000);
    
CreateDynamicObject(36601109.56152, -1384.0119615.36556,   0.000000.000000.00000);
    
CreateDynamicObject(36601099.75281, -1384.0201415.36556,   0.000000.000000.00000);
    
CreateDynamicObject(86611089.67969, -1377.6839613.13371,   0.000000.000000.00000);
    
CreateDynamicObject(86611129.41064, -1377.7169213.13371,   0.000000.000000.00000); 
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.
Reply
#2

OnGamemodeInit does not have playerid arguement put it on OnPlayerconnect (remove part)
Reply
#3

Thanks. Fixed it.
Reply
#4

or you can make:
PHP код:
stock RemoveObject(playerid)
{
RemoveBuilding...
return 
1;

And under OnGameModeInit() just put
PHP код:
RemoveObject(playerid); 


EDIT: My mistake. not under OnGameModeInit. put it under OnPlayerConnect. Sorry again
Reply
#5

Quote:
Originally Posted by Micko123
Посмотреть сообщение
or you can make:
PHP код:
stock RemoveObject(playerid)
{
RemoveBuilding...
return 
1;

And under OnGameModeInit() just put
PHP код:
RemoveObject(); 
Um.. no?
Код:
stock RemoveObject(playerid)
You still have to use playerid.. You posted that yourself.
Reply
#6

Quote:
Originally Posted by Stinged
Посмотреть сообщение
Um.. no?
Код:
stock RemoveObject(playerid)
You still have to use playerid.. You posted that yourself.
Thank you for seeing that
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)