Adding a map into a gm?
#1

Okay, I tryed adding my mapping to the bottom of the GameMode it was converted, but this is the error im getting can anyone help me?
C:\Users\VPS1220Admin\Desktop\PCRP\gamemodes\VRP.p wn(45271) : error 021: symbol already defined:"CreateObject"
Reply
#2

put all object under

Public OnGamemodeInit

objects wll only work under that header
Reply
#3

Sorry for so many questions, im new to this, ok so i found "public OnGameModeInit()", In-between the "()" do i put the object codes in there? or under "public OnGameModeInit()"
Reply
#4

you put the objects like this

public OnGamemodeInit();
{
//objects under here
}

do not remove the return 1 and return 1 should be bleow everything else
Reply
#5

Example
pawn Код:
public OnGameModeInit()
{
    CreateObject();
    CreateObject();
    CreateObject();
    CreateObject();
    CreateObject();
    CreateObject();
    (Code stuff)
    return 1;
}
Hope this helps
Reply
#6

Thanks, but its just Making the compiler to stop responding when i try compiling
Reply
#7

you are missing a bracket or you have to meny brackets or you have put the objects in a miaddle of a code please pistyour OnGamemodeInit();

here
Reply
#8

Which one of the comments did you use, mine or PGTips?
btw CreateObject(details and stuff like normal);
Example
CreateObject(4564,-2755.38623000,-1972.75805700,44.68423500,0.00000000,0.00000000,32 0.56948531);

btw PGTips review your code
pawn Код:
public OnGamemodeInit();
{
//objects under here
}
Reply
#9

Код:
public OnGamemodeInit();
{
CreateObject(990,2458.39257812,-1669.05749512,14.02740955,0.00000000,0.00000000,0.00000000); //object(bar_barrier12) (1)
CreateObject(990,2448.42993164,-1669.09985352,14.02753353,0.00000000,0.00000000,0.00000000); //object(bar_barrier12) (2)
CreateObject(990,2438.37524414,-1669.14343262,14.05532551,0.00000000,0.00000000,0.00000000); //object(bar_barrier12) (3)
}
Reply
#10

Quote:
Originally Posted by Tyler_Cordwell
Посмотреть сообщение
Код:
public OnGamemodeInit();
{
CreateObject(990,2458.39257812,-1669.05749512,14.02740955,0.00000000,0.00000000,0.00000000); //object(bar_barrier12) (1)
CreateObject(990,2448.42993164,-1669.09985352,14.02753353,0.00000000,0.00000000,0.00000000); //object(bar_barrier12) (2)
CreateObject(990,2438.37524414,-1669.14343262,14.05532551,0.00000000,0.00000000,0.00000000); //object(bar_barrier12) (3)
}
Main problems in here it should be
public OnGamemodeInit() not public OnGamemodeInit();
and the return 1;
pawn Код:
public OnGamemodeInit()
{
    CreateObject(990,2458.39257812,-1669.05749512,14.02740955,0.00000000,0.00000000,0.00000000); //object(bar_barrier12) (1)
    CreateObject(990,2448.42993164,-1669.09985352,14.02753353,0.00000000,0.00000000,0.00000000); //object(bar_barrier12) (2)
    CreateObject(990,2438.37524414,-1669.14343262,14.05532551,0.00000000,0.00000000,0.00000000); //object(bar_barrier12) (3)
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)