Problem. [SOLVED] -
speedruntrainer - 04.08.2009
I finally got the MTA Map Editor working for vista. I converted the map for a test. but I get 1 error in pawno. I don't need return 1 or 0 since more errors are showing up :/
EDIT: Needed a return after those brackets. I hate those small easy things I don't know :/
pawn Код:
public OnGameModeInit()
CreateObject(971, -1508.957520, 2607.262207, 58.430794, 0.0000, 0.0000, 0.0000);
CreateObject(971, -1513.443848, 2611.654785, 58.430794, 0.0000, 0.0000, 90.2408);
CreateObject(971, -1504.605713, 2611.675537, 58.406975, 0.0000, 0.0000, 271.4781);
CreateObject(971, -1508.223999, 2611.827393, 62.093224, 268.8998, 311.9755, 223.4542);
CreateObject(969, -1515.129517, 2615.809326, 62.213699, 268.0403, 1.7189, 273.1970);
CreateObject(969, -1513.567139, 2616.334473, 59.002815, 0.0000, 0.0000, 0.8594);
Symbol alredy defined: CreateObject.
Can someone please help me out? so I can make new maps.
Thanks.
Re: Problem. -
TheKingWillem - 04.08.2009
You have to put it in your gamemode, not a a seperate pwn file.
Re: Problem. -
JaTochNietDan - 04.08.2009
You need the wrap the OnGameModeInit function using brackets.
pawn Код:
public OnGameModeInit()
{
CreateObject(971, -1508.957520, 2607.262207, 58.430794, 0.0000, 0.0000, 0.0000);
CreateObject(971, -1513.443848, 2611.654785, 58.430794, 0.0000, 0.0000, 90.2408);
CreateObject(971, -1504.605713, 2611.675537, 58.406975, 0.0000, 0.0000, 271.4781);
CreateObject(971, -1508.223999, 2611.827393, 62.093224, 268.8998, 311.9755, 223.4542);
CreateObject(969, -1515.129517, 2615.809326, 62.213699, 268.0403, 1.7189, 273.1970);
CreateObject(969, -1513.567139, 2616.334473, 59.002815, 0.0000, 0.0000, 0.8594);
}
Re: Problem. -
speedruntrainer - 04.08.2009
Damn closing Brackets!!!




Thanks!!!

That took the error out
EDIT: OMG objets not showing & Loading

What do I wrong? I don't have to put this in my Gamemode. more people of a server made maps. What do I wrong? maybe in the editot itself??
Re: Problem. (NOT SOLVED YET, Objects not loading. using MTA Editor -
JaTochNietDan - 04.08.2009
Quote:
Originally Posted by speedruntrainer
|
I experienced a similiar issue, try using another converter when converting the objects.
Re: Problem. [SOLVED] -
speedruntrainer - 04.08.2009
Ja Toch Wel Dan

Solved. Objects are showing now. return was needed and I didn't know because no errors were found.
So there was a "hidden error" :P
weer wat geleerd =D (learned something again)