Da0ne / DZMods

DayZ Standalone Vanilla++ project
Other
35 stars 19 forks source link

Cant Complile mission init script #123

Closed James5445 closed 5 years ago

James5445 commented 5 years ago

Cant compile mission init script

...//CustomBuildings//BuildingSpawner.c(41): Incompatible return parameter '#return'

DarthKnight01 commented 5 years ago

I'm having the same issue

ChawDinky commented 5 years ago

Vilayer has the same issue, me and lee are brain storming.

replace line 40 with

Object obj = GetGame().CreateObject(building.getName(), building.getLocation().ToVector(), false, true); obj.SetOrientation(building.getOrientation().ToVector()); obj.SetDirection(obj.GetDirection());

DarthKnight01 commented 5 years ago

sorry to post this here but I did not want to open another post about something you guys might already know about but anyways I did the above but now i'm now im getting this "Can't compile mission init script'! $CurrentDir//mpmissions//DayZSurvival.Chernarusplus//ScriptedMods//Modules//ServerEvents//InfectedHordes.c(90) Underfined Function 'AttachEventHandle'

ChawDinky commented 5 years ago

Make sure your run.bat command line is right. that's an issue with you not having a mod installed.

ChawDinky commented 5 years ago

Make sure you have all the files for your. @VanillaPlusPlus and make sure its in the command line.

ChawDinky commented 5 years ago

after this is solved please close this issue.

Da0ne commented 5 years ago

@chawdinky Thanks mate, fixed the issue with the "#return" error.