Collum problem

Started by Spidey, Aug 21, 2015, 10:25 AM

Previous topic - Next topic

Spidey

the code
function createobjects(){
CreateObject(305,1,Vector(394.757, -504.813, 9.39561),255).RotateToEuler(Vector(0, 0, 0),1);
}


Screen Shot is down there


gta vc and san are my favourite games

Spidey

gta vc and san are my favourite games

Diego^

function createobjects(){
CreateObject( 305, 1, 394.757, -504.813, 9.39561, 255 ).RotateToEuler(Vector(0, 0, 0),1);
}
BRL's Developer.

KAKAN

was vector was the real problem? I don't think so
oh no

Diego^

#4
Quote from: KAKAN on Aug 21, 2015, 01:09 PMwas vector was the real problem? I don't think so

Tested his job, and worked properly.. The error is not in the Vector.
Spidey, i realized that the console displays a message:
"No Squirrel gamemode was especified" Try to fix this error in "server.cfg".. ::)
BRL's Developer.

Spidey

 my game mode is vccnr

gamemode vccnr
gta vc and san are my favourite games

Spidey

and see could not load script/main.nut
how fix it
gta vc and san are my favourite games

Thijn

That no gamemode specified is thrown because your main.nut script failed to load because of this error. Fix the error and that notice will go away as well.



The code is fine. The error is thrown on the last line, which makes me believe the error is in a piece of code somewhere else in your file.
Try to check your brackets, and see if you've forgotten one or added one too many.

Spidey

and where should i add it to main.nut or server.cfg
gta vc and san are my favourite games

Thijn

Quote from: Spidey on Aug 22, 2015, 04:37 AMand where should i add it to main.nut or server.cfg
Like I said, the server.cfg is not the problem. Check your main.nut for other scripting errors.

Spidey

Quote from: Diego^ on Aug 21, 2015, 01:00 PMfunction createobjects(){
CreateObject( 305, 1, 394.757, -504.813, 9.39561, 255 ).RotateToEuler(Vector(0, 0, 0),1);
}

} is  the problem
gta vc and san are my favourite games

MatheuS

Quote from: Spidey on Aug 22, 2015, 11:41 AM
Quote from: Diego^ on Aug 21, 2015, 01:00 PMfunction createobjects(){
CreateObject( 305, 1, 394.757, -504.813, 9.39561, 255 ).RotateToEuler(Vector(0, 0, 0),1);
}


} is  the problem

lol?
if( !sucess ) tryAgain();
Thanks to the VCMP community. It was the happiest period of my life.

Thijn

...

Like I said: Yes. A bracket is probably the problem, but not that one. Those 3 lines of code work.
So, test parts of your code until you find the actual problem.

Spidey

i tried it
}
is the problem
gta vc and san are my favourite games

Thijn

Great, so you fixed it?