PDA

View Full Version : Briefing not working



SB Interactive
Dec 7 2010, 17:21
Ive searched high and low, but to no avail for an answer to this. So here it goes.

I made a briefing... and it doesn't work and i can't figure out why. Here are the codes for the briefing.sqf and init.sqf

briefing.sqf

// A2BM W   110
// DO NOT EDIT THIS FILE

waitUntil {!(isNull player)};
waitUntil {player==player};
switch (side player) do
{
case WEST:
{
player createDiaryRecord ["Diary",["Execution","We will be coming in like a hurricane from the west. We have already given the order to evacuate. We leafleted the city for a week. If the civilians are dumb enough to stay, thats their mistake. We are taking this city at all costs. If it moves, shoot it. If it shoots back, shoot it again. "]];
player createDiaryRecord ["Diary",["Mission","Capture Elektrodavosk"]];
player createDiaryRecord ["Diary",["Situation","Chernarus has gone to hell with the withdrawel of US troops at the order of the United Nations Resolution 88769. The Russians have come in, and all they are doing is supporting those ChDKZ bastards while they try to murder us: It does not seem to be a peacekeeping mission at all, but an ethnic cleansing operation. We have gathered the last of the CDF for an all out assault on the City of Elektrodavosk. If we can take this, we may stand a chance of getting men and equipment and retaking the capital city of Chernogorsk. The ChDKZ is dug in tight though, and it is estimated that they outnumber us 3:1. Add in the Russian "Peacekeepers", and we are talking a 4:1 ratio. This is gonna be a bloody long day. "]];
tskObj0=player createSimpleTask ["Capture Elektrozavodsk"];
tskObj0 setSimpleTaskDescription ["Capture the Industrial Hub of Elektrozavodsk from the ChDKZ. This will give us a good base to start manufacturing weapons again. ","Capture Elektrozavodsk","Capture Elektrozavodsk"];
tskobj0 setSimpleTaskDestination (getMarkerPos "obj0");
};
case EAST:
{
};
case RESISTANCE:
{
};
case CIVILIAN:
{
};
};

init.sqf


// run the briefing file
execVM "briefing.sqf";



// Function Definitons:
/// Create a taskHint
/// Usage: [tskExample] call mk_fTaskHint;
/// Gets the taskState of the passed task, and shows the status on screen
mk_fTaskHint = compile (preprocessFileLineNumbers "fTaskHint.sqf");

any suggestions?

sxp2high
Dec 7 2010, 17:26
I don't checked the code yet, but you need this in yout init.sqf:


if (!(isServer) && !(isDedicated) && (player != player) || (isNull player)) then {
waitUntil {(player == player) && !(isNull player)};
};

Found an error:
player createDiaryRecord ["Diary",["Situation","Chernarus has gone to hell .............. "Peacekeepers", and we are talking a 4:1 ratio. This is gonna be a bloody long day. "]]

Use ' instead.

SB Interactive
Dec 7 2010, 17:39
:inlove: :inlove: :inlove: THANKS!!!!