Help with CreateObject
#1

Hello, when i put serveral ofcourse (with diffrent ids, and locations)
CreateObject(983, 621.79999, -599.09998, 16.9, 0, 0, 92);
under the OnGameModeInit()

i start to get an error
error 021: symbol already defined: "CreateObject"
Reply
#2

Can you send us your whole code. Some rows above and under CreateObject.
Reply
#3

public OnGameModeInit()
CreateObject(983, 621.79999, -599.09998, 16.9, 0, 0, 92);
CreateObject(983, 621.79999, -603.79999, 16.9, 0, 0, 270);
CreateObject(983, 621.79999, -594.40002, 16.9, 0, 0, 270);
CreateObject(4640, 652.29999, -590, 17, 0, 0, 0);
CreateObject(970, 656.29999, -590.09998, 15.9, 0, 0, 0);
CreateObject(970, 660.5, -590.09998, 15.9, 0, 0, 0);
CreateObject(970, 664.79999, -590.09998, 15.9, 0, 0, 0);
CreateObject(970, 669.09998, -590, 15.9, 0, 0, 0);
CreateObject(970, 659.5, -577.70001, 15.9, 0, 0, 0);
CreateObject(970, 655.29999, -577.70001, 15.9, 0, 0, 0);
CreateObject(970, 653, -579.79999, 15.9, 0, 0, 26;
CreateObject(970, 653.09998, -587.70001, 15.9, 0, 0, 270);
CreateObject(970, 858.79999, -579.79999, 17.8, 0, 0, 272);
CreateObject(970, 854.09998, -579.70001, 17.8, 0, 0, 26;
CreateObject(970, 863, -579.90002, 17.8, 0, 0, 90);
CreateObject(970, 822.79999, -611, 15.9, 0, 0, 272);
CreateObject(970, 824.90002, -608.79999, 15.9, 0, 0, 0);
CreateObject(970, 827.20001, -611, 15.9, 0, 0, 274);
CreateObject(970, 781.29999, -615.59998, 15.9, 0, 0, 0);
CreateObject(970, 834.79999, -615.09998, 15.9, 0, 0, 0);
CreateObject(970, 800.79999, -607.40002, 15.9, 0, 0, 90);
CreateObject(970, 800.79999, -611.59998, 15.9, 0, 0, 270);
CreateObject(970, 816.59998, -611.20001, 15.9, 0, 0, 272);
CreateObject(970, 816.29999, -606.90002, 15.9, 0, 0, 90);
CreateObject(970, 787.5, -611.5, 15.9, 0, 0, 86);
CreateObject(970, 787.70001, -607.29999, 15.9, 0, 0, 8;
CreateObject(2114, 2274.1001, -86, 25.6, 0, 0, 0);
CreateObject(3496, 2266.2, -81.7, 25.5, 0, 0, 246);
CreateObject(3496, 2281.8999, -89.3, 25.5, 0, 0, 4;
CreateObject(983, 1217.6, 308.79999, 19.3, 0, 0, 336);
CreateObject(983, 1215, 302.89999, 19.2, 0, 0, 33;
CreateObject(983, 1212.7, 296.89999, 19.2, 0, 0, 33;
CreateObject(983, 1226.3, 287.89999, 19.2, 0, 0, 66);
CreateObject(983, 1214.5, 292.70001, 19.2, 0, 0, 6;
CreateObject(12950, 1228, 298, 20.7, 0, 0, 336);
CreateObject(1757, 1249.1, 321.29999, 23.8, 0, 0, 0);
CreateObject(2762, 1250.8, 316.39999, 24.2, 0, 0, 0);
CreateObject(2595, 1250.9, 316.39999, 25, 0, 0, 10;
CreateObject(984, 1241.6, 341.29999, 19.2, 0, 0, 66);
CreateObject(984, 1253.3, 336.10001, 19.2, 0, 0, 66);
CreateObject(984, 1265, 330.89999, 19.2, 0, 0, 66);
CreateObject(970, 198.60001, 1920.7, 17.2, 0, 0, 8;
CreateObject(970, 207, 1921, 17.2, 0, 0, 96);
CreateObject(970, 216.2, 1921.1, 17.2, 0, 0, 94);
{
but there's no emoji's that are shown here.
Reply
#4

You have to do it like this:
PHP код:
public OnGameModeInit()
{
    
CreateObject(983621.79999, -599.0999816.90092);
    
CreateObject(983621.79999, -603.7999916.900270);
    
CreateObject(983621.79999, -594.4000216.900270);
    
CreateObject(4640652.29999, -59017000);
    
CreateObject(970656.29999, -590.0999815.9000);
    
CreateObject(970660.5, -590.0999815.9000);
    
CreateObject(970664.79999, -590.0999815.9000);
    
CreateObject(970669.09998, -59015.9000);
    
CreateObject(970659.5, -577.7000115.9000);
    
CreateObject(970655.29999, -577.7000115.9000);
    
CreateObject(970653, -579.7999915.90026;
    
CreateObject(970653.09998, -587.7000115.900270);
    
CreateObject(970858.79999, -579.7999917.800272);
    
CreateObject(970854.09998, -579.7000117.80026;
    
CreateObject(970863, -579.9000217.80090);
    
CreateObject(970822.79999, -61115.900272);
    
CreateObject(970824.90002, -608.7999915.9000);
    
CreateObject(970827.20001, -61115.900274);
    
CreateObject(970781.29999, -615.5999815.9000);
    
CreateObject(970834.79999, -615.0999815.9000);
    
CreateObject(970800.79999, -607.4000215.90090);
    
CreateObject(970800.79999, -611.5999815.900270);
    
CreateObject(970816.59998, -611.2000115.900272);
    
CreateObject(970816.29999, -606.9000215.90090);
    
CreateObject(970787.5, -611.515.90086);
    
CreateObject(970787.70001, -607.2999915.9008;
    
CreateObject(21142274.1001, -8625.6000);
    
CreateObject(34962266.2, -81.725.500246);
    
CreateObject(34962281.8999, -89.325.5004;
    
CreateObject(9831217.6308.7999919.300336);
    
CreateObject(9831215302.8999919.20033;
    
CreateObject(9831212.7296.8999919.20033;
    
CreateObject(9831226.3287.8999919.20066);
    
CreateObject(9831214.5292.7000119.2006;
    
CreateObject(12950122829820.700336);
    
CreateObject(17571249.1321.2999923.8000);
    
CreateObject(27621250.8316.3999924.2000);
    
CreateObject(25951250.9316.39999250010;
    
CreateObject(9841241.6341.2999919.20066);
    
CreateObject(9841253.3336.1000119.20066);
    
CreateObject(9841265330.8999919.20066);
    
CreateObject(970198.600011920.717.2008;
    
CreateObject(970207192117.20096);
    
CreateObject(970216.21921.117.20094);
    return 
1;

The functions have to be between the both brackets ( { and } ).
Reply
#5

geez, thanks im first starting to do some shit with pawn, sorry.
Reply
#6

Quote:
Originally Posted by Dominykaszz
Посмотреть сообщение
geez, thanks im first starting to do some shit with pawn, sorry.
No problem. Therefore we are here.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)