[HELP] With CreatObject
#1

Well, I made a map for my GM and when I place it in my script it gives me 1 error.. This is how it looks.

Код:
C:\Users\User\Desktop\MiniMissions\pawno\area51.pwn(74) : error 021: symbol already defined: "CreateObject"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
This is what I put in my script...

Код:
CreateObject(7657, 1303.161133, -2056.235840, 58.954910, 0.0000, 0.0000, 90.0000);
CreateObject(8042, 1266.250732, -2048.547607, 64.121597, 0.0000, 0.0000, 281.2500);
CreateObject(1374, 1256.724854, -2047.404053, 59.527519, 0.0000, 0.0000, 270.0000);
CreateObject(1374, 1274.767578, -2049.165771, 59.492081, 0.0000, 0.0000, 78.7500);
CreateObject(978, 1302.916260, -2041.907227, 58.009781, 0.0000, 0.0000, 90.0000);
CreateObject(978, 1303.070313, -2032.558350, 58.117229, 0.0000, 0.0000, 90.0000);
CreateObject(978, 1299.578979, -2024.877075, 57.616489, 0.0000, 0.0000, 315.0000);
CreateObject(978, 1295.527710, -2017.581177, 57.166988, 0.0000, 0.0000, 281.2500);
CreateObject(978, 1293.399780, -2008.910278, 56.499519, 0.0000, 0.0000, 281.2500);
CreateObject(978, 1291.488525, -2000.368164, 55.779270, 0.0000, 0.0000, 281.2500);
CreateObject(978, 1289.436279, -1991.669067, 55.081646, 0.0000, 0.0000, 281.2500);
CreateObject(978, 1284.020874, -1987.326172, 55.171947, 0.0000, 0.0000, 0.0000);
CreateObject(978, 1275.311157, -1987.246460, 55.491283, 0.0000, 0.0000, 0.0000);
CreateObject(978, 1266.536377, -1987.197876, 55.918560, 0.0000, 0.0000, 0.0000);
CreateObject(978, 1257.628662, -1987.293823, 56.379101, 0.0000, 0.0000, 0.0000);
CreateObject(978, 1249.599487, -1987.195557, 56.967453, 0.0000, 0.0000, 0.0000);
CreateObject(978, 1242.745728, -1989.680176, 57.256023, 0.0000, 0.0000, 56.2500);
CreateObject(978, 1240.525635, -1993.664063, 58.052593, 0.0000, 0.0000, 67.5000);
CreateObject(978, 1238.675537, -1999.141479, 59.544163, 0.0000, 0.0000, 78.7500);
CreateObject(978, 1303.309082, -2070.234863, 57.499889, 0.0000, 0.0000, 90.0000);
CreateObject(978, 1298.709229, -2074.938721, 57.412514, 0.0000, 0.0000, 0.0000);
CreateObject(978, 1289.767822, -2071.265625, 57.926571, 0.0000, 0.0000, 326.2500);
CreateObject(978, 1281.400391, -2066.844238, 58.822552, 0.0000, 0.0000, 348.7500);
CreateObject(978, 1272.664551, -2065.887939, 59.120407, 0.0000, 0.0000, 0.0000);
CreateObject(978, 1263.524048, -2065.877441, 59.371758, 0.0000, 0.0000, 0.0000);
CreateObject(978, 1254.258789, -2065.709229, 59.633514, 0.0000, 0.0000, 0.0000);
CreateObject(978, 1245.524170, -2065.514404, 59.876736, 0.0000, 0.0000, 0.0000);
CreateObject(978, 1238.554810, -2069.015381, 59.769405, 0.0000, 0.0000, 56.2500);
CreateObject(3268, 1261.365723, -2018.878540, 57.905869, 0.0000, 0.0000, 90.0000);
CreateObject(987, 1199.132935, -2070.636719, 68.007813, 0.0000, 0.0000, 0.0000);
CreateObject(987, 1199.040283, -2070.472412, 68.057335, 0.0000, 0.0000, 180.0000);
CreateObject(987, 1186.964355, -2070.546387, 68.007813, 0.0000, 0.0000, 180.0000);
CreateObject(987, 1174.889893, -2070.547119, 68.007813, 0.0000, 0.0000, 180.0000);
CreateObject(987, 1162.979004, -2070.384766, 68.007813, 0.0000, 0.0000, 180.0000);
CreateObject(987, 1150.995117, -2070.082520, 68.007813, 0.0000, 0.0000, 213.7499);
CreateObject(987, 1141.698364, -2076.927002, 68.007813, 0.0000, 0.0000, 202.5000);
CreateObject(993, 1126.015381, -2081.605957, 69.677055, 0.0000, 0.0000, 0.0000);
CreateObject(993, 1116.057617, -2081.548584, 69.476151, 0.0000, 0.0000, 0.0000);
CreateObject(993, 1106.681885, -2078.684814, 69.621597, 0.0000, 0.0000, 326.2500);
CreateObject(993, 1103.866211, -2071.232422, 69.621597, 0.0000, 0.0000, 90.0000);
CreateObject(993, 1103.945557, -2061.249756, 69.621597, 0.0000, 0.0000, 90.0000);
CreateObject(993, 1103.963745, -2055.152588, 69.621597, 0.0000, 0.0000, 90.0000);
CreateObject(993, 1098.624146, -2050.122314, 69.509857, 0.0000, 0.0000, 0.0000);
CreateObject(988, 1119.654541, -2072.431152, 69.448845, 0.0000, 0.0000, 123.7499);
CreateObject(988, 1121.681274, -2004.264648, 69.580765, 0.0000, 0.0000, 45.0000);
CreateObject(986, 1119.320435, -2014.881226, 75.140358, 0.0000, 0.0000, 0.0000);
CreateObject(986, 1112.683228, -2014.973389, 75.140358, 0.0000, 0.0000, 0.0000);
CreateObject(986, 1119.311279, -2058.424316, 75.140358, 0.0000, 0.0000, 0.0000);
CreateObject(986, 1112.682251, -2058.423340, 75.140358, 0.0000, 0.0000, 0.0000);
CreateObject(3399, 1106.317261, -2053.231201, 70.601860, 0.0000, 0.0000, 90.0000);
CreateObject(969, 1115.114868, -2072.695801, 67.699661, 0.0000, 0.0000, 258.7500);
CreateObject(3399, 1104.388794, -2037.482910, 77.117775, 0.0000, 0.0000, 180.0000);
CreateObject(987, 1124.141602, -1993.716187, 68.007813, 0.0000, 0.0000, 0.0000);
CreateObject(987, 1136.462891, -1994.221436, 68.007813, 0.0000, 0.0000, 0.0000);
CreateObject(987, 1148.350342, -1994.483154, 68.007813, 0.0000, 0.0000, 0.0000);
CreateObject(987, 1160.032959, -1994.237915, 68.007813, 0.0000, 0.0000, 0.0000);
CreateObject(987, 1172.073608, -1994.506836, 68.007813, 0.0000, 0.0000, 0.0000);
CreateObject(987, 1183.950317, -1994.699951, 68.007813, 0.0000, 0.0000, 0.0000);
CreateObject(987, 1195.675781, -1994.687134, 68.007813, 0.0000, 0.0000, 0.0000);
CreateObject(987, 1207.316406, -1995.104004, 68.007813, 0.0000, 0.0000, 0.0000);
CreateObject(987, 1215.159058, -1996.955078, 66.459877, 0.0000, 0.0000, 258.7500);
Can you please help me?
Reply
#2

Quote:
Originally Posted by [CK
Steel ]
Well, I made a map for my GM and when I place it in my script it gives me 1 error.. This is how it looks.

Код:
C:\Users\User\Desktop\MiniMissions\pawno\area51.pwn(74) : error 021: symbol already defined: "CreateObject"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
This is what I put in my script...

Код:
CreateObject(7657, 1303.161133, -2056.235840, 58.954910, 0.0000, 0.0000, 90.0000);
CreateObject(8042, 1266.250732, -2048.547607, 64.121597, 0.0000, 0.0000, 281.2500);
CreateObject(1374, 1256.724854, -2047.404053, 59.527519, 0.0000, 0.0000, 270.0000);
CreateObject(1374, 1274.767578, -2049.165771, 59.492081, 0.0000, 0.0000, 78.7500);
CreateObject(978, 1302.916260, -2041.907227, 58.009781, 0.0000, 0.0000, 90.0000);
CreateObject(978, 1303.070313, -2032.558350, 58.117229, 0.0000, 0.0000, 90.0000);
CreateObject(978, 1299.578979, -2024.877075, 57.616489, 0.0000, 0.0000, 315.0000);
CreateObject(978, 1295.527710, -2017.581177, 57.166988, 0.0000, 0.0000, 281.2500);
CreateObject(978, 1293.399780, -2008.910278, 56.499519, 0.0000, 0.0000, 281.2500);
CreateObject(978, 1291.488525, -2000.368164, 55.779270, 0.0000, 0.0000, 281.2500);
CreateObject(978, 1289.436279, -1991.669067, 55.081646, 0.0000, 0.0000, 281.2500);
CreateObject(978, 1284.020874, -1987.326172, 55.171947, 0.0000, 0.0000, 0.0000);
CreateObject(978, 1275.311157, -1987.246460, 55.491283, 0.0000, 0.0000, 0.0000);
CreateObject(978, 1266.536377, -1987.197876, 55.918560, 0.0000, 0.0000, 0.0000);
CreateObject(978, 1257.628662, -1987.293823, 56.379101, 0.0000, 0.0000, 0.0000);
CreateObject(978, 1249.599487, -1987.195557, 56.967453, 0.0000, 0.0000, 0.0000);
CreateObject(978, 1242.745728, -1989.680176, 57.256023, 0.0000, 0.0000, 56.2500);
CreateObject(978, 1240.525635, -1993.664063, 58.052593, 0.0000, 0.0000, 67.5000);
CreateObject(978, 1238.675537, -1999.141479, 59.544163, 0.0000, 0.0000, 78.7500);
CreateObject(978, 1303.309082, -2070.234863, 57.499889, 0.0000, 0.0000, 90.0000);
CreateObject(978, 1298.709229, -2074.938721, 57.412514, 0.0000, 0.0000, 0.0000);
CreateObject(978, 1289.767822, -2071.265625, 57.926571, 0.0000, 0.0000, 326.2500);
CreateObject(978, 1281.400391, -2066.844238, 58.822552, 0.0000, 0.0000, 348.7500);
CreateObject(978, 1272.664551, -2065.887939, 59.120407, 0.0000, 0.0000, 0.0000);
CreateObject(978, 1263.524048, -2065.877441, 59.371758, 0.0000, 0.0000, 0.0000);
CreateObject(978, 1254.258789, -2065.709229, 59.633514, 0.0000, 0.0000, 0.0000);
CreateObject(978, 1245.524170, -2065.514404, 59.876736, 0.0000, 0.0000, 0.0000);
CreateObject(978, 1238.554810, -2069.015381, 59.769405, 0.0000, 0.0000, 56.2500);
CreateObject(3268, 1261.365723, -2018.878540, 57.905869, 0.0000, 0.0000, 90.0000);
CreateObject(987, 1199.132935, -2070.636719, 68.007813, 0.0000, 0.0000, 0.0000);
CreateObject(987, 1199.040283, -2070.472412, 68.057335, 0.0000, 0.0000, 180.0000);
CreateObject(987, 1186.964355, -2070.546387, 68.007813, 0.0000, 0.0000, 180.0000);
CreateObject(987, 1174.889893, -2070.547119, 68.007813, 0.0000, 0.0000, 180.0000);
CreateObject(987, 1162.979004, -2070.384766, 68.007813, 0.0000, 0.0000, 180.0000);
CreateObject(987, 1150.995117, -2070.082520, 68.007813, 0.0000, 0.0000, 213.7499);
CreateObject(987, 1141.698364, -2076.927002, 68.007813, 0.0000, 0.0000, 202.5000);
CreateObject(993, 1126.015381, -2081.605957, 69.677055, 0.0000, 0.0000, 0.0000);
CreateObject(993, 1116.057617, -2081.548584, 69.476151, 0.0000, 0.0000, 0.0000);
CreateObject(993, 1106.681885, -2078.684814, 69.621597, 0.0000, 0.0000, 326.2500);
CreateObject(993, 1103.866211, -2071.232422, 69.621597, 0.0000, 0.0000, 90.0000);
CreateObject(993, 1103.945557, -2061.249756, 69.621597, 0.0000, 0.0000, 90.0000);
CreateObject(993, 1103.963745, -2055.152588, 69.621597, 0.0000, 0.0000, 90.0000);
CreateObject(993, 1098.624146, -2050.122314, 69.509857, 0.0000, 0.0000, 0.0000);
CreateObject(988, 1119.654541, -2072.431152, 69.448845, 0.0000, 0.0000, 123.7499);
CreateObject(988, 1121.681274, -2004.264648, 69.580765, 0.0000, 0.0000, 45.0000);
CreateObject(986, 1119.320435, -2014.881226, 75.140358, 0.0000, 0.0000, 0.0000);
CreateObject(986, 1112.683228, -2014.973389, 75.140358, 0.0000, 0.0000, 0.0000);
CreateObject(986, 1119.311279, -2058.424316, 75.140358, 0.0000, 0.0000, 0.0000);
CreateObject(986, 1112.682251, -2058.423340, 75.140358, 0.0000, 0.0000, 0.0000);
CreateObject(3399, 1106.317261, -2053.231201, 70.601860, 0.0000, 0.0000, 90.0000);
CreateObject(969, 1115.114868, -2072.695801, 67.699661, 0.0000, 0.0000, 258.7500);
CreateObject(3399, 1104.388794, -2037.482910, 77.117775, 0.0000, 0.0000, 180.0000);
CreateObject(987, 1124.141602, -1993.716187, 68.007813, 0.0000, 0.0000, 0.0000);
CreateObject(987, 1136.462891, -1994.221436, 68.007813, 0.0000, 0.0000, 0.0000);
CreateObject(987, 1148.350342, -1994.483154, 68.007813, 0.0000, 0.0000, 0.0000);
CreateObject(987, 1160.032959, -1994.237915, 68.007813, 0.0000, 0.0000, 0.0000);
CreateObject(987, 1172.073608, -1994.506836, 68.007813, 0.0000, 0.0000, 0.0000);
CreateObject(987, 1183.950317, -1994.699951, 68.007813, 0.0000, 0.0000, 0.0000);
CreateObject(987, 1195.675781, -1994.687134, 68.007813, 0.0000, 0.0000, 0.0000);
CreateObject(987, 1207.316406, -1995.104004, 68.007813, 0.0000, 0.0000, 0.0000);
CreateObject(987, 1215.159058, -1996.955078, 66.459877, 0.0000, 0.0000, 258.7500);
Can you please help me?
Happened to me put it in your gamemode then it will work
Reply
#3

I did put it in my Game Mode... It still gives me that 1 error.. Please can someone help me through this error?
Reply
#4

** bump **
Reply
#5

Find out what's on line 74 and compare it with the other object formats, if it is a object problem.
Reply
#6

Quote:
Originally Posted by Ash0153
Find out what's on line 74 and compare it with the other object formats, if it is a object problem.
I compared them, and if I remove line 74 it'll say theres an error in line 75 (symbol already defined: "CreateObject")...

[EDIT]: Do I have to put the CreatObject's in a filterscript? or in the game mode? cause maybe thats the problem?
Reply
#7

worked fine for me. if they are in OnFilterScriptInit/OnGameModeInit, check to see if you have made any mistakes in it.
Reply
#8

Quote:
Originally Posted by -The_Badger-
worked fine for me. if they are in OnFilterScriptInit/OnGameModeInit, check to see if you have made any mistakes in it.
Yeah, Just found out how it works. I had to put it under "AddPlayerClass". It worked fine. Well, thanks guys for helping me. And thanks to you, Cause it was actually onder, "OnGameModeInit"
Reply
#9

glad to help and know its working
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)