[HELP] Please help me! CreateObject from MAP Editor please help!
#1

Hello SAMP,
If you could just help me with this problem it would be really great, I tried to put objects and I've put the code under OnGameModeInit but it wont appear... here is the code including the RemoveBuildingForPlayer

I will sure give REP+ to whoever helped me MAKE THE BUILDING APPEAR because I know how to removebuilding for player I just had to put them under OnPlayerConnect


Код:
RemoveBuildingForPlayer(playerid, 3368, 161.7891, 2411.3828, 15.4766, 0.25);
RemoveBuildingForPlayer(playerid, 3368, 323.0078, 2411.3828, 15.4766, 0.25);
RemoveBuildingForPlayer(playerid, 3369, 349.8750, 2438.2500, 15.4766, 0.25);
RemoveBuildingForPlayer(playerid, 3369, 269.2656, 2411.3828, 15.4766, 0.25);
RemoveBuildingForPlayer(playerid, 3369, 242.3984, 2438.2500, 15.4766, 0.25);
RemoveBuildingForPlayer(playerid, 3369, 188.6563, 2438.2500, 15.4766, 0.25);
RemoveBuildingForPlayer(playerid, 3369, 108.0469, 2411.3828, 15.4766, 0.25);
RemoveBuildingForPlayer(playerid, 3367, 296.1406, 2438.2500, 15.4766, 0.25);
RemoveBuildingForPlayer(playerid, 3367, 215.5313, 2411.3828, 15.4766, 0.25);
RemoveBuildingForPlayer(playerid, 3367, 134.9141, 2438.2500, 15.4766, 0.25);
RemoveBuildingForPlayer(playerid, 3269, 108.0469, 2411.3828, 15.4766, 0.25);
RemoveBuildingForPlayer(playerid, 3270, 161.7891, 2411.3828, 15.4766, 0.25);
RemoveBuildingForPlayer(playerid, 3364, 77.3203, 2456.2500, 15.2813, 0.25);
RemoveBuildingForPlayer(playerid, 3269, 188.6563, 2438.2500, 15.4766, 0.25);
RemoveBuildingForPlayer(playerid, 3271, 134.9141, 2438.2500, 15.4766, 0.25);
RemoveBuildingForPlayer(playerid, 3271, 215.5313, 2411.3828, 15.4766, 0.25);
RemoveBuildingForPlayer(playerid, 3269, 242.3984, 2438.2500, 15.4766, 0.25);
RemoveBuildingForPlayer(playerid, 3269, 269.2656, 2411.3828, 15.4766, 0.25);
RemoveBuildingForPlayer(playerid, 3271, 296.1406, 2438.2500, 15.4766, 0.25);
RemoveBuildingForPlayer(playerid, 3270, 323.0078, 2411.3828, 15.4766, 0.25);
RemoveBuildingForPlayer(playerid, 16101, 321.6719, 2463.4922, 15.4766, 0.25);
RemoveBuildingForPlayer(playerid, 16368, 321.6719, 2463.4922, 25.6641, 0.25);
RemoveBuildingForPlayer(playerid, 3269, 349.8750, 2438.2500, 15.4766, 0.25);
RemoveBuildingForPlayer(playerid, 864, 352.7734, 2444.4063, 15.8828, 0.25);
RemoveBuildingForPlayer(playerid, 864, 346.8984, 2435.5547, 16.2266, 0.25);
RemoveBuildingForPlayer(playerid, 864, 345.2422, 2432.1328, 16.0391, 0.25);
RemoveBuildingForPlayer(playerid, 864, 346.4141, 2445.2969, 15.9922, 0.25);
RemoveBuildingForPlayer(playerid, 864, 357.5938, 2449.6172, 15.6406, 0.25);
RemoveBuildingForPlayer(playerid, 864, 364.2266, 2450.7578, 15.5469, 0.25);
CreateObject(18801, 356.59, 2437.40, 38.24,   0.00, 0.00, 275.46);
CreateObject(18801, 337.31, 2433.98, 38.84,   0.00, 0.00, 98.55);
CreateObject(18750, 184.07, 2504.84, 70.38,   85.00, 0.00, 87.09);
CreateObject(18779, -13.16, 2499.10, 24.79,   0.00, 0.00, 359.83);
CreateObject(18828, 19.81, 2432.51, 93.56,   0.00, 0.00, 4.52);
CreateObject(18778, 289.63, 2492.68, 19.39,   0.00, 0.00, 88.54);
CreateObject(18778, 290.08, 2508.22, 19.39,   0.00, 0.00, 88.54);
CreateObject(18777, 12.26, 2442.52, 18.03,   0.00, 0.00, 311.67);
CreateObject(18777, 11.86, 2442.23, 43.87,   0.00, 0.00, 312.24);
CreateObject(18777, 11.15, 2442.32, 69.71,   0.00, 0.00, 313.06);
Reply
#2

Put RemoveBuildingForPlayer in OnPlayerConnect
Reply
#3

Quote:
Originally Posted by Viniborn
Посмотреть сообщение
Put RemoveBuildingForPlayer in OnPlayerConnect
I did, thats what I wrote above the code... that I have put it under OnPlayerConnect..
Reply
#4

Put it in "OnGameModeInit". That's where it's supposed to go..

EDIT: If the building is not appearing, use ConvertFFS to change it to "CreateDynamicObject" from "CreateObject" so it can stream properly.
Reply
#5

Quote:
Originally Posted by Jhero
Посмотреть сообщение
Put it in "OnGameModeInit". That's where it's supposed to go..

EDIT: If the building is not appearing, use ConvertFFS to change it to "CreateDynamicObject" from "CreateObject" so it can stream properly.
No codes came up when I converted it...
Reply
#6

Quote:
Originally Posted by Jhero
Посмотреть сообщение
Put it in "OnGameModeInit". That's where it's supposed to go..

EDIT: If the building is not appearing, use ConvertFFS to change it to "CreateDynamicObject" from "CreateObject" so it can stream properly.
remove building isnt supose to go under ongamemode init.... it dosnt define "playerid" remove building goes under OnplayerSpawn/connect if it dosnt work, do you get errors? or do they not de-spawn


and "CreateObject" goes under ongamemode init and i think you need a streamer.
Reply
#7

Quote:
Originally Posted by NeymarJr
Посмотреть сообщение
No codes came up when I converted it...
Make sure you set your options like this,



It should work fine if you did so. Once this is completed, the building should stream.


Quote:
Originally Posted by (*|Flake|*)
Посмотреть сообщение
remove building isnt supose to go under ongamemode init.... it dosnt define "playerid" remove building goes under OnplayerSpawn/connect if it dosnt work, do you get errors? or do they not de-spawn


and "CreateObject" goes under ongamemode init and i think you need a streamer.
I put it in "OnGameModeInit" and it worked for me. So, I'm not sure why your telling me something else...
Reply
#8

Quote:
Originally Posted by (*|Flake|*)
Посмотреть сообщение
remove building isnt supose to go under ongamemode init.... it dosnt define "playerid" remove building goes under OnplayerSpawn/connect if it dosnt work, do you get errors? or do they not de-spawn


and "CreateObject" goes under ongamemode init and i think you need a streamer.
I've put the RemoveBuildingForPlayer under OnPlayerConnect as I said at the top, and I didn't put it under OnGameModeInit and also its a CreateDynamicObject I've tried to use convertffs and no codes came up, also i am using map editor.. not mta map editor..
Reply
#9

Quote:
Originally Posted by NeymarJr
Посмотреть сообщение
I've put the RemoveBuildingForPlayer under OnPlayerConnect as I said at the top, and I didn't put it under OnGameModeInit and also its a CreateDynamicObject I've tried to use convertffs and no codes came up, also i am using map editor.. not mta map editor..
Did you ONLY paste the lines with "CreateObject" or with RemoveBuilding...?






EDIT:
I converted it for you;

pawn Код:
CreateDynamicObject(18801,356.59000000,2437.40000000,38.24000000,0.00000000,0.00000000,275.46000000); //
CreateDynamicObject(18801,337.31000000,2433.98000000,38.84000000,0.00000000,0.00000000,98.55000000); //
CreateDynamicObject(18750,184.07000000,2504.84000000,70.38000000,85.00000000,0.00000000,87.09000000); //
CreateDynamicObject(18779,-13.16000000,2499.10000000,24.79000000,0.00000000,0.00000000,359.83000000); //
CreateDynamicObject(18828,19.81000000,2432.51000000,93.56000000,0.00000000,0.00000000,4.52000000); //
CreateDynamicObject(18778,289.63000000,2492.68000000,19.39000000,0.00000000,0.00000000,88.54000000); //
CreateDynamicObject(18778,290.08000000,2508.22000000,19.39000000,0.00000000,0.00000000,88.54000000); //
CreateDynamicObject(18777,12.26000000,2442.52000000,18.03000000,0.00000000,0.00000000,311.67000000); //
CreateDynamicObject(18777,11.86000000,2442.23000000,43.87000000,0.00000000,0.00000000,312.24000000); //
CreateDynamicObject(18777,11.15000000,2442.32000000,69.71000000,0.00000000,0.00000000,313.06000000); //
Reply
#10

Quote:
Originally Posted by Jhero
Посмотреть сообщение
Did you ONLY paste the lines with "CreateObject" or with RemoveBuilding...?






EDIT:
I converted it for you;

pawn Код:
CreateDynamicObject(18801,356.59000000,2437.40000000,38.24000000,0.00000000,0.00000000,275.46000000); //
CreateDynamicObject(18801,337.31000000,2433.98000000,38.84000000,0.00000000,0.00000000,98.55000000); //
CreateDynamicObject(18750,184.07000000,2504.84000000,70.38000000,85.00000000,0.00000000,87.09000000); //
CreateDynamicObject(18779,-13.16000000,2499.10000000,24.79000000,0.00000000,0.00000000,359.83000000); //
CreateDynamicObject(18828,19.81000000,2432.51000000,93.56000000,0.00000000,0.00000000,4.52000000); //
CreateDynamicObject(18778,289.63000000,2492.68000000,19.39000000,0.00000000,0.00000000,88.54000000); //
CreateDynamicObject(18778,290.08000000,2508.22000000,19.39000000,0.00000000,0.00000000,88.54000000); //
CreateDynamicObject(18777,12.26000000,2442.52000000,18.03000000,0.00000000,0.00000000,311.67000000); //
CreateDynamicObject(18777,11.86000000,2442.23000000,43.87000000,0.00000000,0.00000000,312.24000000); //
CreateDynamicObject(18777,11.15000000,2442.32000000,69.71000000,0.00000000,0.00000000,313.06000000); //
I pasted with the CreateDynamicObject and also tried CreateObject but none worked and I pasted the code you gave me and this is what I got:

Код:
C:\Users\jr\Desktop\SAMP Server\gamemodes\alpha.pwn(1247) : error 017: undefined symbol "CreateDynamicObject"
C:\Users\jr\Desktop\SAMP Server\gamemodes\alpha.pwn(1248) : error 017: undefined symbol "CreateDynamicObject"
C:\Users\jr\Desktop\SAMP Server\gamemodes\alpha.pwn(1249) : error 017: undefined symbol "CreateDynamicObject"
C:\Users\jr\Desktop\SAMP Server\gamemodes\alpha.pwn(1250) : error 017: undefined symbol "CreateDynamicObject"
C:\Users\jr\Desktop\SAMP Server\gamemodes\alpha.pwn(1251) : error 017: undefined symbol "CreateDynamicObject"
C:\Users\jr\Desktop\SAMP Server\gamemodes\alpha.pwn(1252) : error 017: undefined symbol "CreateDynamicObject"
C:\Users\jr\Desktop\SAMP Server\gamemodes\alpha.pwn(1253) : error 017: undefined symbol "CreateDynamicObject"
C:\Users\jr\Desktop\SAMP Server\gamemodes\alpha.pwn(1254) : error 017: undefined symbol "CreateDynamicObject"
C:\Users\jr\Desktop\SAMP Server\gamemodes\alpha.pwn(1255) : error 017: undefined symbol "CreateDynamicObject"
C:\Users\jr\Desktop\SAMP Server\gamemodes\alpha.pwn(1256) : error 017: undefined symbol "CreateDynamicObject"
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)