Need jHelp for server adds on Nexgen

Discussions about Coding and Scripting
Letylove49
Experienced
Posts: 108
Joined: Tue Feb 28, 2012 7:47 pm
Personal rank: <[MHA]>Admin
Location: suisse

Need jHelp for server adds on Nexgen

Post by Letylove49 » Thu Aug 04, 2022 9:01 pm

// display an advert
if (sConf.numAdverts > 0 && level.TimeSeconds >= sConf.nextAdvertTime) {

if (sConf.bRandomAdvertOrder)
sConf.advertIndex = rand(sConf.numAdverts);

broadcastMsg("<C07>"$sConf.serverAdverts[sConf.advertIndex], , , , , , , , , true, 'broadcastMsg');

if (++sConf.advertIndex >= sConf.numAdverts)
sConf.advertIndex = 0;

sConf.nextAdvertTime = level.TimeSeconds + sConf.advertTimeInterval;
}

i got Call to broadcastMsg: Bad , or missing ).


i don't want to make display the message on center like in NexgenMH
<[MHA]>Letylove49 aka Shado170

User avatar
Barbie
Godlike
Posts: 2390
Joined: Fri Sep 25, 2015 9:01 pm
Location: moved without proper hashing

Re: Need jHelp for server adds on Nexgen

Post by Barbie » Sat Aug 06, 2022 7:06 pm

Maybe add some more info like class and function name to get hints.
"Multiple exclamation marks," he went on, shaking his head, "are a sure sign of a diseased mind." --Terry Pratchett