Skip to content
  • 0 Unread 0
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Donate
Collapse

Plutonium

  1. Home
  2. BO2 Modding Support & Discussion
  3. [Support] Mono Syntax Error

[Support] Mono Syntax Error

Scheduled Pinned Locked Moved BO2 Modding Support & Discussion
28 Posts 7 Posters 3.8k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Farzad Farzad

    After numerous attempts of trying to resolve the line 58 syntax error, I have gave up. May any person help me, or let me know what the error is? Thanks.

    
    #include maps/mp/_utility;
    #include maps/mp/gametypes/_globallogic_audio;
    #include maps/mp/_music;
    #include maps/mp/gametypes/_hud_message;
    #include maps/mp/gametypes/_hud_util;
    
    init()
    {
    precachestring( &"MENU_POINTS" );
    precachestring( &"MP_FIRSTPLACE_NAME" );
    precachestring( &"MP_SECONDPLACE_NAME" );
    precachestring( &"MP_THIRDPLACE_NAME" );
    precachestring( &"MP_WAGER_PLACE_NAME" );
    precachestring( &"MP_MATCH_BONUS_IS" );
    precachestring( &"MP_CODPOINTS_MATCH_BONUS_IS" );
    precachestring( &"MP_WAGER_WINNINGS_ARE" );
    precachestring( &"MP_WAGER_SIDEBET_WINNINGS_ARE" );
    precachestring( &"MP_WAGER_IN_THE_MONEY" );
    precachestring( &"faction_popup" );
    game[ "strings" ][ "draw" ] = &"MP_DRAW_CAPS";
    game[ "strings" ][ "round_draw" ] = &"MP_ROUND_DRAW_CAPS";
    game[ "strings" ][ "round_win" ] = &"MP_ROUND_WIN_CAPS";
    game[ "strings" ][ "round_loss" ] = &"MP_ROUND_LOSS_CAPS";
    game[ "strings" ][ "victory" ] = &"MP_VICTORY_CAPS";
    game[ "strings" ][ "defeat" ] = &"MP_DEFEAT_CAPS";
    game[ "strings" ][ "game_over" ] = &"MP_GAME_OVER_CAPS";
    game[ "strings" ][ "halftime" ] = &"MP_HALFTIME_CAPS";
    game[ "strings" ][ "overtime" ] = &"MP_OVERTIME_CAPS";
    game[ "strings" ][ "roundend" ] = &"MP_ROUNDEND_CAPS";
    game[ "strings" ][ "intermission" ] = &"MP_INTERMISSION_CAPS";
    game[ "strings" ][ "side_switch" ] = &"MP_SWITCHING_SIDES_CAPS";
    game[ "strings" ][ "match_bonus" ] = &"MP_MATCH_BONUS_IS";
    game[ "strings" ][ "codpoints_match_bonus" ] = &"MP_CODPOINTS_MATCH_BONUS_IS";
    game[ "strings" ][ "wager_winnings" ] = &"MP_WAGER_WINNINGS_ARE";
    game[ "strings" ][ "wager_sidebet_winnings" ] = &"MP_WAGER_SIDEBET_WINNINGS_ARE";
    game[ "strings" ][ "wager_inthemoney" ] = &"MP_WAGER_IN_THE_MONEY_CAPS";
    game[ "strings" ][ "wager_loss" ] = &"MP_WAGER_LOSS_CAPS";
    game[ "strings" ][ "wager_topwinners" ] = &"MP_WAGER_TOPWINNERS";
    game[ "menu_endgameupdate" ] = "endgameupdate";
    precachemenu( game[ "menu_endgameupdate" ] );
    level thread onplayerconnect();
    }
    
    onplayerconnect()
    {
    for ( ;; )
    {
    level waittill( "connecting", player );
    player thread hintmessagedeaththink();
    player thread lowermessagethink();
    player thread initnotifymessage();
    player thread initcustomgametypeheader();
    }
    }
    
    initcustomgametypeheader()
    {
    font = "default";
    titlesize = 2,5;
    self.customgametypeheader = createfontstring( font, titlesize );
    self.customgametypeheader setpoint( "TOP", undefined, 0, 30 );
    self.customgametypeheader.glowalpha = 1;
    self.customgametypeheader.hidewheninmenu = 1;
    self.customgametypeheader.archived = 0;
    self.customgametypeheader.color = ( 1, 1, 0,6 );
    self.customgametypeheader.alpha = 1;
    titlesize = 2;
    self.customgametypesubheader = createfontstring( font, titlesize );
    self.customgametypesubheader setparent( self.customgametypeheader );
    self.customgametypesubheader setpoint( "TOP", "BOTTOM", 0, 0 );
    self.customgametypesubheader.glowalpha = 1;
    self.customgametypesubheader.hidewheninmenu = 1;
    self.customgametypesubheader.archived = 0;
    self.customgametypesubheader.color = ( 1, 1, 0,6 );
    self.customgametypesubheader.alpha = 1;
    }
    
    hintmessage( hinttext, duration )
    {
    notifydata = spawnstruct();
    notifydata.notifytext = hinttext;
    notifydata.duration = duration;
    notifymessage( notifydata );
    }
    
    hintmessageplayers( players, hinttext, duration )
    {
    notifydata = spawnstruct();
    notifydata.notifytext = hinttext;
    notifydata.duration = duration;
    i = 0;
    while ( i < players.size )
    {
    players[ i ] notifymessage( notifydata );
    i++;
    }
    }
    
    showinitialfactionpopup( team )
    {
    self luinotifyevent( &"faction_popup", 1, game[ "strings" ][ team + "_name" ] );
    maps/mp/gametypes/_hud_message::oldnotifymessage( undefined, undefined, undefined, undefined );
    }
    
    initnotifymessage()
    {
    if ( !sessionmodeiszombiesgame() )
    {
    if ( self issplitscreen() )
    {
    titlesize = 2;
    textsize = 1,4;
    iconsize = 24;
    font = "big";
    point = "TOP";
    relativepoint = "BOTTOM";
    yoffset = 30;
    xoffset = 30;
    }
    else
    {
    titlesize = 2,5;
    textsize = 1,75;
    iconsize = 30;
    font = "big";
    point = "TOP";
    relativepoint = "BOTTOM";
    yoffset = 0;
    xoffset = 0;
    }
    }
    else if ( self issplitscreen() )
    {
    titlesize = 2;
    textsize = 1,4;
    iconsize = 24;
    font = "big";
    point = "TOP";
    relativepoint = "BOTTOM";
    yoffset = 30;
    xoffset = 30;
    }
    else
    {
    titlesize = 2,5;
    textsize = 1,75;
    iconsize = 30;
    font = "big";
    point = "BOTTOM LEFT";
    relativepoint = "TOP";
    yoffset = 0;
    xoffset = 0;
    }
    self.notifytitle = createfontstring( font, titlesize );
    self.notifytitle setpoint( point, undefined, xoffset, yoffset );
    self.notifytitle.glowalpha = 1;
    self.notifytitle.hidewheninmenu = 1;
    self.notifytitle.archived = 0;
    self.notifytitle.alpha = 0;
    self.notifytext = createfontstring( font, textsize );
    self.notifytext setparent( self.notifytitle );
    self.notifytext setpoint( point, relativepoint, 0, 0 );
    self.notifytext.glowalpha = 1;
    self.notifytext.hidewheninmenu = 1;
    self.notifytext.archived = 0;
    self.notifytext.alpha = 0;
    self.notifytext2 = createfontstring( font, textsize );
    self.notifytext2 setparent( self.notifytitle );
    self.notifytext2 setpoint( point, relativepoint, 0, 0 );
    self.notifytext2.glowalpha = 1;
    self.notifytext2.hidewheninmenu = 1;
    self.notifytext2.archived = 0;
    self.notifytext2.alpha = 0;
    self.notifyicon = createicon( "white", iconsize, iconsize );
    self.notifyicon setparent( self.notifytext2 );
    self.notifyicon setpoint( point, relativepoint, 0, 0 );
    self.notifyicon.hidewheninmenu = 1;
    self.notifyicon.archived = 0;
    self.notifyicon.alpha = 0;
    self.doingnotify = 0;
    self.notifyqueue = [];
    }
    
    oldnotifymessage( titletext, notifytext, iconname, glowcolor, sound, duration )
    {
    if ( level.wagermatch && !level.teambased )
    {
    return;
    }
    notifydata = spawnstruct();
    notifydata.titletext = titletext;
    notifydata.notifytext = notifytext;
    notifydata.iconname = iconname;
    notifydata.sound = sound;
    notifydata.duration = duration;
    self.startmessagenotifyqueue[ self.startmessagenotifyqueue.size ] = notifydata;
    self notify( "received award" );
    }
    
    notifymessage( notifydata )
    {
    self endon( "death" );
    self endon( "disconnect" );
    self.messagenotifyqueue[ self.messagenotifyqueue.size ] = notifydata;
    self notify( "received award" );
    }
    
    playnotifyloop( duration )
    {
    playnotifyloop = spawn( "script_origin", ( 1, 1, 1 ) );
    playnotifyloop playloopsound( "uin_notify_data_loop" );
    duration -= 4;
    if ( duration < 1 )
    {
    duration = 1;
    }
    wait duration;
    playnotifyloop delete();
    }
    
    shownotifymessage( notifydata, duration )
    {
    self endon( "disconnect" );
    self.doingnotify = 1;
    waitrequirevisibility( 0 );
    self notify( "notifyMessageBegin" );
    self thread resetoncancel();
    if ( isDefined( notifydata.sound ) )
    {
    self playlocalsound( notifydata.sound );
    }
    if ( isDefined( notifydata.musicstate ) )
    {
    self maps/mp/_music::setmusicstate( notifydata.music );
    }
    if ( isDefined( notifydata.leadersound ) )
    {
    self maps/mp/gametypes/_globallogic_audio::leaderdialogonplayer( notifydata.leadersound );
    }
    if ( isDefined( notifydata.glowcolor ) )
    {
    glowcolor = notifydata.glowcolor;
    }
    else
    {
    glowcolor = ( 1, 1, 1 );
    }
    if ( isDefined( notifydata.color ) )
    {
    color = notifydata.color;
    }
    else
    {
    color = ( 1, 1, 1 );
    }
    anchorelem = self.notifytitle;
    if ( isDefined( notifydata.titletext ) )
    {
    if ( isDefined( notifydata.titlelabel ) )
    {
    self.notifytitle.label = notifydata.titlelabel;
    }
    else
    {
    self.notifytitle.label = &"";
    }
    if ( isDefined( notifydata.titlelabel ) && !isDefined( notifydata.titleisstring ) )
    {
    self.notifytitle setvalue( notifydata.titletext );
    }
    else
    {
    self.notifytitle settext( notifydata.titletext );
    }
    self.notifytitle setcod7decodefx( 200, int( duration * 1000 ), 600 );
    self.notifytitle.glowcolor = glowcolor;
    self.notifytitle.color = color;
    self.notifytitle.alpha = 1;
    }
    if ( isDefined( notifydata.notifytext ) )
    {
    if ( isDefined( notifydata.textlabel ) )
    {
    self.notifytext.label = notifydata.textlabel;
    }
    else
    {
    self.notifytext.label = &"";
    }
    if ( isDefined( notifydata.textlabel ) && !isDefined( notifydata.textisstring ) )
    {
    self.notifytext setvalue( notifydata.notifytext );
    }
    else
    {
    self.notifytext settext( notifydata.notifytext );
    }
    self.notifytext setcod7decodefx( 100, int( duration * 1000 ), 600 );
    self.notifytext.glowcolor = glowcolor;
    self.notifytext.color = color;
    self.notifytext.alpha = 1;
    anchorelem = self.notifytext;
    }
    if ( isDefined( notifydata.notifytext2 ) )
    {
    if ( self issplitscreen() )
    {
    if ( isDefined( notifydata.text2label ) )
    {
    self iprintlnbold( notifydata.text2label, notifydata.notifytext2 );
    }
    else
    {
    self iprintlnbold( notifydata.notifytext2 );
    }
    }
    else
    {
    self.notifytext2 setparent( anchorelem );
    if ( isDefined( notifydata.text2label ) )
    {
    self.notifytext2.label = notifydata.text2label;
    }
    else
    {
    self.notifytext2.label = &"";
    }
    self.notifytext2 settext( notifydata.notifytext2 );
    self.notifytext2 setpulsefx( 100, int( duration * 1000 ), 1000 );
    self.notifytext2.glowcolor = glowcolor;
    self.notifytext2.color = color;
    self.notifytext2.alpha = 1;
    anchorelem = self.notifytext2;
    }
    }
    if ( isDefined( notifydata.iconname ) )
    {
    iconwidth = 60;
    iconheight = 60;
    if ( isDefined( notifydata.iconwidth ) )
    {
    iconwidth = notifydata.iconwidth;
    }
    if ( isDefined( notifydata.iconheight ) )
    {
    iconheight = notifydata.iconheight;
    }
    self.notifyicon setparent( anchorelem );
    self.notifyicon setshader( notifydata.iconname, iconwidth, iconheight );
    self.notifyicon.alpha = 0;
    self.notifyicon fadeovertime( 1 );
    self.notifyicon.alpha = 1;
    waitrequirevisibility( duration );
    self.notifyicon fadeovertime( 0,75 );
    self.notifyicon.alpha = 0;
    }
    else
    {
    waitrequirevisibility( duration );
    }
    self notify( "notifyMessageDone" );
    self.doingnotify = 0;
    }
    
    waitrequirevisibility( waittime )
    {
    interval = 0,05;
    while ( !self canreadtext() )
    {
    wait interval;
    }
    while ( waittime > 0 )
    {
    wait interval;
    if ( self canreadtext() )
    {
    waittime -= interval;
    }
    }
    }
    
    canreadtext()
    {
    if ( self maps/mp/_utility::isflashbanged() )
    {
    return 0;
    }
    return 1;
    }
    
    resetondeath()
    {
    self endon( "notifyMessageDone" );
    self endon( "disconnect" );
    level endon( "game_ended" );
    self waittill( "death" );
    resetnotify();
    }
    
    resetoncancel()
    {
    self notify( "resetOnCancel" );
    self endon( "resetOnCancel" );
    self endon( "notifyMessageDone" );
    self endon( "disconnect" );
    level waittill( "cancel_notify" );
    resetnotify();
    }
    
    resetnotify()
    {
    self.notifytitle.alpha = 0;
    self.notifytext.alpha = 0;
    self.notifyicon.alpha = 0;
    self.doingnotify = 0;
    }
    
    hintmessagedeaththink()
    {
    self endon( "disconnect" );
    for ( ;; )
    {
    self waittill( "death" );
    if ( isDefined( self.hintmessage ) )
    {
    self.hintmessage destroyelem();
    }
    }
    }
    
    lowermessagethink()
    {
    self endon( "disconnect" );
    messagetexty = level.lowertexty;
    if ( self issplitscreen() )
    {
    messagetexty = level.lowertexty - 50;
    }
    self.lowermessage = createfontstring( "default", level.lowertextfontsize );
    self.lowermessage setpoint( "CENTER", level.lowertextyalign, 0, messagetexty );
    self.lowermessage settext( "" );
    self.lowermessage.archived = 0;
    timerfontsize = 1,5;
    if ( self issplitscreen() )
    {
    timerfontsize = 1,4;
    }
    self.lowertimer = createfontstring( "default", timerfontsize );
    self.lowertimer setparent( self.lowermessage );
    self.lowertimer setpoint( "TOP", "BOTTOM", 0, 0 );
    self.lowertimer settext( "" );
    self.lowertimer.archived = 0;
    }
    
    setmatchscorehudelemforteam( team )
    {
    if ( level.roundscorecarry )
    {
    self setvalue( getteamscore( team ) );
    }
    else
    {
    self setvalue( getroundswon( team ) );
    }
    }
    
    teamoutcomenotify( winner, isround, endreasontext )
    {
    self endon( "disconnect" );
    self notify( "reset_outcome" );
    team = self.pers[ "team" ];
    while ( isDefined( team ) && team == "spectator" )
    {
    i = 0;
    while ( i < level.players.size )
    {
    if ( self.currentspectatingclient == level.players[ i ].clientid )
    {
    team = level.players[ i ].pers[ "team" ];
    break;
    }
    else
    {
    i++;
    }
    }
    }
    if ( !isDefined( team ) || !isDefined( level.teams[ team ] ) )
    {
    team = "allies";
    }
    while ( self.doingnotify )
    {
    wait 0,05;
    }
    self endon( "reset_outcome" );
    headerfont = "extrabig";
    font = "default";
    if ( self issplitscreen() )
    {
    titlesize = 2;
    textsize = 1,5;
    iconsize = 30;
    spacing = 10;
    }
    else
    {
    titlesize = 3;
    textsize = 2;
    iconsize = 70;
    spacing = 25;
    }
    duration = 60000;
    outcometitle = createfontstring( headerfont, titlesize );
    outcometitle setpoint( "TOP", undefined, 0, 30 );
    outcometitle.glowalpha = 1;
    outcometitle.hidewheninmenu = 0;
    outcometitle.archived = 0;
    outcometitle.immunetodemogamehudsettings = 1;
    outcometitle.immunetodemofreecamera = 1;
    outcometext = createfontstring( font, 2 );
    outcometext setparent( outcometitle );
    outcometext setpoint( "TOP", "BOTTOM", 0, 0 );
    outcometext.glowalpha = 1;
    outcometext.hidewheninmenu = 0;
    outcometext.archived = 0;
    outcometext.immunetodemogamehudsettings = 1;
    outcometext.immunetodemofreecamera = 1;
    if ( winner == "halftime" )
    {
    outcometitle settext( game[ "strings" ][ "halftime" ] );
    outcometitle.color = ( 1, 1, 1 );
    winner = "allies";
    }
    else if ( winner == "intermission" )
    {
    outcometitle settext( game[ "strings" ][ "intermission" ] );
    outcometitle.color = ( 1, 1, 1 );
    winner = "allies";
    }
    else if ( winner == "roundend" )
    {
    outcometitle settext( game[ "strings" ][ "roundend" ] );
    outcometitle.color = ( 1, 1, 1 );
    winner = "allies";
    }
    else if ( winner == "overtime" )
    {
    outcometitle settext( game[ "strings" ][ "overtime" ] );
    outcometitle.color = ( 1, 1, 1 );
    winner = "allies";
    }
    else if ( winner == "tie" )
    {
    if ( isround )
    {
    outcometitle settext( game[ "strings" ][ "round_draw" ] );
    }
    else
    {
    outcometitle settext( game[ "strings" ][ "draw" ] );
    }
    outcometitle.color = ( 0,29, 0,61, 0,7 );
    winner = "allies";
    }
    else if ( isDefined( self.pers[ "team" ] ) && winner == team )
    {
    if ( isround )
    {
    outcometitle settext( game[ "strings" ][ "round_win" ] );
    }
    else
    {
    outcometitle settext( game[ "strings" ][ "victory" ] );
    }
    outcometitle.color = ( 0,42, 0,68, 0,46 );
    if ( isDefined( level.endvictoryreasontext ) )
    {
    endreasontext = level.endvictoryreasontext;
    }
    }
    else
    {
    if ( isround )
    {
    outcometitle settext( game[ "strings" ][ "round_loss" ] );
    }
    else
    {
    outcometitle settext( game[ "strings" ][ "defeat" ] );
    }
    outcometitle.color = ( 0,73, 0,29, 0,19 );
    if ( isDefined( level.enddefeatreasontext ) )
    {
    endreasontext = level.enddefeatreasontext;
    }
    }
    outcometext settext( endreasontext );
    outcometitle setcod7decodefx( 200, duration, 600 );
    outcometext setpulsefx( 100, duration, 1000 );
    iconspacing = 100;
    currentx = ( ( level.teamcount - 1 ) * -1 * iconspacing ) / 2;
    teamicons = [];
    teamicons[ team ] = createicon( game[ "icons" ][ team ], iconsize, iconsize );
    teamicons[ team ] setparent( outcometext );
    teamicons[ team ] setpoint( "TOP", "BOTTOM", currentx, spacing );
    teamicons[ team ].hidewheninmenu = 0;
    teamicons[ team ].archived = 0;
    teamicons[ team ].immunetodemogamehudsettings = 1;
    teamicons[ team ].immunetodemofreecamera = 1;
    teamicons[ team ].alpha = 0;
    teamicons[ team ] fadeovertime( 0,5 );
    teamicons[ team ].alpha = 1;
    currentx += iconspacing;
    _a650 = level.teams;
    _k650 = getFirstArrayKey( _a650 );
    while ( isDefined( _k650 ) )
    {
    enemyteam = _a650[ _k650 ];
    if ( team == enemyteam )
    {
    }
    else
    {
    teamicons[ enemyteam ] = createicon( game[ "icons" ][ enemyteam ], iconsize, iconsize );
    teamicons[ enemyteam ] setparent( outcometext );
    teamicons[ enemyteam ] setpoint( "TOP", "BOTTOM", currentx, spacing );
    teamicons[ enemyteam ].hidewheninmenu = 0;
    teamicons[ enemyteam ].archived = 0;
    teamicons[ enemyteam ].immunetodemogamehudsettings = 1;
    teamicons[ enemyteam ].immunetodemofreecamera = 1;
    teamicons[ enemyteam ].alpha = 0;
    teamicons[ enemyteam ] fadeovertime( 0,5 );
    teamicons[ enemyteam ].alpha = 1;
    currentx += iconspacing;
    }
    _k650 = getNextArrayKey( _a650, _k650 );
    }
    teamscores = [];
    teamscores[ team ] = createfontstring( font, titlesize );
    teamscores[ team ] setparent( teamicons[ team ] );
    teamscores[ team ] setpoint( "TOP", "BOTTOM", 0, spacing );
    teamscores[ team ].glowalpha = 1;
    if ( isround )
    {
    teamscores[ team ] setvalue( getteamscore( team ) );
    }
    else
    {
    teamscores[ team ] [[ level.setmatchscorehudelemforteam ]]( team );
    }
    teamscores[ team ].hidewheninmenu = 0;
    teamscores[ team ].archived = 0;
    teamscores[ team ].immunetodemogamehudsettings = 1;
    teamscores[ team ].immunetodemofreecamera = 1;
    teamscores[ team ] setpulsefx( 100, duration, 1000 );
    _a688 = level.teams;
    _k688 = getFirstArrayKey( _a688 );
    while ( isDefined( _k688 ) )
    {
    enemyteam = _a688[ _k688 ];
    if ( team == enemyteam )
    {
    }
    else
    {
    teamscores[ enemyteam ] = createfontstring( headerfont, titlesize );
    teamscores[ enemyteam ] setparent( teamicons[ enemyteam ] );
    teamscores[ enemyteam ] setpoint( "TOP", "BOTTOM", 0, spacing );
    teamscores[ enemyteam ].glowalpha = 1;
    if ( isround )
    {
    teamscores[ enemyteam ] setvalue( getteamscore( enemyteam ) );
    }
    else
    {
    teamscores[ enemyteam ] [[ level.setmatchscorehudelemforteam ]]( enemyteam );
    }
    teamscores[ enemyteam ].hidewheninmenu = 0;
    teamscores[ enemyteam ].archived = 0;
    teamscores[ enemyteam ].immunetodemogamehudsettings = 1;
    teamscores[ enemyteam ].immunetodemofreecamera = 1;
    teamscores[ enemyteam ] setpulsefx( 100, duration, 1000 );
    }
    _k688 = getNextArrayKey( _a688, _k688 );
    }
    font = "objective";
    matchbonus = undefined;
    if ( isDefined( self.matchbonus ) )
    {
    bonus = ceil( self.matchbonus * level.xpscale );
    if ( bonus > 0 )
    {
    matchbonus = createfontstring( font, 2 );
    matchbonus setparent( outcometext );
    matchbonus setpoint( "TOP", "BOTTOM", 0, iconsize + ( spacing * 3 ) + teamscores[ team ].height );
    matchbonus.glowalpha = 1;
    matchbonus.hidewheninmenu = 0;
    matchbonus.archived = 0;
    matchbonus.immunetodemogamehudsettings = 1;
    matchbonus.immunetodemofreecamera = 1;
    matchbonus.label = game[ "strings" ][ "match_bonus" ];
    matchbonus setvalue( bonus );
    }
    }
    self thread resetoutcomenotify( teamicons, teamscores, outcometitle, outcometext );
    }
    
    teamoutcomenotifyzombie( winner, isround, endreasontext )
    {
    self endon( "disconnect" );
    self notify( "reset_outcome" );
    team = self.pers[ "team" ];
    while ( isDefined( team ) && team == "spectator" )
    {
    i = 0;
    while ( i < level.players.size )
    {
    if ( self.currentspectatingclient == level.players[ i ].clientid )
    {
    team = level.players[ i ].pers[ "team" ];
    break;
    }
    else
    {
    i++;
    }
    }
    }
    if ( !isDefined( team ) || !isDefined( level.teams[ team ] ) )
    {
    team = "allies";
    }
    while ( self.doingnotify )
    {
    wait 0,05;
    }
    self endon( "reset_outcome" );
    if ( level.splitscreen )
    {
    titlesize = 2;
    spacing = 10;
    font = "default";
    }
    else
    {
    titlesize = 3;
    spacing = 50;
    font = "objective";
    }
    outcometitle = createfontstring( font, titlesize );
    outcometitle setpoint( "TOP", undefined, 0, spacing );
    outcometitle.glowalpha = 1;
    outcometitle.hidewheninmenu = 0;
    outcometitle.archived = 0;
    outcometitle.immunetodemogamehudsettings = 1;
    outcometitle.immunetodemofreecamera = 1;
    outcometitle settext( endreasontext );
    outcometitle setpulsefx( 100, 60000, 1000 );
    self thread resetoutcomenotify( undefined, undefined, outcometitle );
    }
    
    isintop( players, topn )
    {
    i = 0;
    while ( i < topn )
    {
    if ( isDefined( players[ i ] ) && self == players[ i ] )
    {
    return 1;
    }
    i++;
    }
    return 0;
    }
    
    outcomenotify( winner, isroundend, endreasontext )
    {
    self endon( "disconnect" );
    self notify( "reset_outcome" );
    while ( self.doingnotify )
    {
    wait 0,05;
    }
    self endon( "reset_outcome" );
    headerfont = "extrabig";
    font = "default";
    if ( self issplitscreen() )
    {
    titlesize = 2;
    winnersize = 1,5;
    othersize = 1,5;
    iconsize = 30;
    spacing = 10;
    }
    else
    {
    titlesize = 3;
    winnersize = 2;
    othersize = 1,5;
    iconsize = 30;
    spacing = 20;
    }
    duration = 60000;
    players = level.placement[ "all" ];
    outcometitle = createfontstring( headerfont, titlesize );
    outcometitle setpoint( "TOP", undefined, 0, spacing );
    if ( !maps/mp/_utility::isoneround() && !isroundend )
    {
    outcometitle settext( game[ "strings" ][ "game_over" ] );
    }
    else
    {
    if ( players[ 0 ].pointstowin == 0 )
    {
    outcometitle settext( game[ "strings" ][ "tie" ] );
    }
    else if ( self isintop( players, 3 ) )
    {
    outcometitle settext( game[ "strings" ][ "victory" ] );
    outcometitle.color = ( 0,42, 0,68, 0,46 );
    }
    else
    {
    outcometitle settext( game[ "strings" ][ "defeat" ] );
    outcometitle.color = ( 0,73, 0,29, 0,19 );
    }
    }
    outcometitle.glowalpha = 1;
    outcometitle.hidewheninmenu = 0;
    outcometitle.archived = 0;
    outcometitle.immunetodemogamehudsettings = 1;
    outcometitle.immunetodemofreecamera = 1;
    outcometitle setcod7decodefx( 200, duration, 600 );
    outcometext = createfontstring( font, 2 );
    outcometext setparent( outcometitle );
    outcometext setpoint( "TOP", "BOTTOM", 0, 0 );
    outcometext.glowalpha = 1;
    outcometext.hidewheninmenu = 0;
    outcometext.archived = 0;
    outcometext.immunetodemogamehudsettings = 1;
    outcometext.immunetodemofreecamera = 1;
    outcometext settext( endreasontext );
    firsttitle = createfontstring( font, winnersize );
    firsttitle setparent( outcometext );
    firsttitle setpoint( "TOP", "BOTTOM", 0, spacing );
    firsttitle.glowalpha = 1;
    firsttitle.hidewheninmenu = 0;
    firsttitle.archived = 0;
    firsttitle.immunetodemogamehudsettings = 1;
    firsttitle.immunetodemofreecamera = 1;
    if ( isDefined( players[ 0 ] ) )
    {
    firsttitle.label = &"MP_FIRSTPLACE_NAME";
    firsttitle setplayernamestring( players[ 0 ] );
    firsttitle setcod7decodefx( 175, duration, 600 );
    }
    secondtitle = createfontstring( font, othersize );
    secondtitle setparent( firsttitle );
    secondtitle setpoint( "TOP", "BOTTOM", 0, spacing );
    secondtitle.glowalpha = 1;
    secondtitle.hidewheninmenu = 0;
    secondtitle.archived = 0;
    secondtitle.immunetodemogamehudsettings = 1;
    secondtitle.immunetodemofreecamera = 1;
    if ( isDefined( players[ 1 ] ) )
    {
    secondtitle.label = &"MP_SECONDPLACE_NAME";
    secondtitle setplayernamestring( players[ 1 ] );
    secondtitle setcod7decodefx( 175, duration, 600 );
    }
    thirdtitle = createfontstring( font, othersize );
    thirdtitle setparent( secondtitle );
    thirdtitle setpoint( "TOP", "BOTTOM", 0, spacing );
    thirdtitle setparent( secondtitle );
    thirdtitle.glowalpha = 1;
    thirdtitle.hidewheninmenu = 0;
    thirdtitle.archived = 0;
    thirdtitle.immunetodemogamehudsettings = 1;
    thirdtitle.immunetodemofreecamera = 1;
    if ( isDefined( players[ 2 ] ) )
    {
    thirdtitle.label = &"MP_THIRDPLACE_NAME";
    thirdtitle setplayernamestring( players[ 2 ] );
    thirdtitle setcod7decodefx( 175, duration, 600 );
    }
    matchbonus = createfontstring( font, 2 );
    matchbonus setparent( thirdtitle );
    matchbonus setpoint( "TOP", "BOTTOM", 0, spacing );
    matchbonus.glowalpha = 1;
    matchbonus.hidewheninmenu = 0;
    matchbonus.archived = 0;
    matchbonus.immunetodemogamehudsettings = 1;
    matchbonus.immunetodemofreecamera = 1;
    if ( isDefined( self.matchbonus ) )
    {
    bonus = ceil( self.matchbonus * level.xpscale );
    if ( bonus > 0 )
    {
    matchbonus.label = game[ "strings" ][ "match_bonus" ];
    matchbonus setvalue( bonus );
    }
    }
    self thread updateoutcome( firsttitle, secondtitle, thirdtitle );
    self thread resetoutcomenotify( undefined, undefined, outcometitle, outcometext, firsttitle, secondtitle, thirdtitle, matchbonus );
    }
    
    wageroutcomenotify( winner, endreasontext )
    {
    self endon( "disconnect" );
    self notify( "reset_outcome" );
    while ( self.doingnotify )
    {
    wait 0,05;
    }
    setmatchflag( "enable_popups", 0 );
    self endon( "reset_outcome" );
    headerfont = "extrabig";
    font = "objective";
    if ( self issplitscreen() )
    {
    titlesize = 2;
    winnersize = 1,5;
    othersize = 1,5;
    iconsize = 30;
    spacing = 2;
    }
    else
    {
    titlesize = 3;
    winnersize = 2;
    othersize = 1,5;
    iconsize = 30;
    spacing = 20;
    }
    halftime = 0;
    if ( isDefined( level.sidebet ) && level.sidebet )
    {
    halftime = 1;
    }
    duration = 60000;
    players = level.placement[ "all" ];
    outcometitle = createfontstring( headerfont, titlesize );
    outcometitle setpoint( "TOP", undefined, 0, spacing );
    if ( halftime )
    {
    outcometitle settext( game[ "strings" ][ "intermission" ] );
    outcometitle.color = ( 1, 1, 1 );
    outcometitle.glowcolor = ( 1, 1, 1 );
    }
    else if ( isDefined( level.dontcalcwagerwinnings ) && level.dontcalcwagerwinnings == 1 )
    {
    outcometitle settext( game[ "strings" ][ "wager_topwinners" ] );
    outcometitle.color = ( 0,42, 0,68, 0,46 );
    }
    else
    {
    if ( isDefined( self.wagerwinnings ) && self.wagerwinnings > 0 )
    {
    outcometitle settext( game[ "strings" ][ "wager_inthemoney" ] );
    outcometitle.color = ( 0,42, 0,68, 0,46 );
    }
    else
    {
    outcometitle settext( game[ "strings" ][ "wager_loss" ] );
    outcometitle.color = ( 0,73, 0,29, 0,19 );
    }
    }
    outcometitle.glowalpha = 1;
    outcometitle.hidewheninmenu = 0;
    outcometitle.archived = 0;
    outcometitle.immunetodemogamehudsettings = 1;
    outcometitle.immunetodemofreecamera = 1;
    outcometitle setcod7decodefx( 200, duration, 600 );
    outcometext = createfontstring( font, 2 );
    outcometext setparent( outcometitle );
    outcometext setpoint( "TOP", "BOTTOM", 0, 0 );
    outcometext.glowalpha = 1;
    outcometext.hidewheninmenu = 0;
    outcometext.archived = 0;
    outcometext.immunetodemogamehudsettings = 1;
    outcometext.immunetodemofreecamera = 1;
    outcometext settext( endreasontext );
    playernamehudelems = [];
    playercphudelems = [];
    numplayers = players.size;
    i = 0;
    while ( i < numplayers )
    {
    if ( !halftime && isDefined( players[ i ] ) )
    {
    secondtitle = createfontstring( font, othersize );
    if ( playernamehudelems.size == 0 )
    {
    secondtitle setparent( outcometext );
    secondtitle setpoint( "TOP_LEFT", "BOTTOM", -175, spacing * 3 );
    }
    else
    {
    secondtitle setparent( playernamehudelems[ playernamehudelems.size - 1 ] );
    secondtitle setpoint( "TOP_LEFT", "BOTTOM_LEFT", 0, spacing );
    }
    secondtitle.glowalpha = 1;
    secondtitle.hidewheninmenu = 0;
    secondtitle.archived = 0;
    secondtitle.immunetodemogamehudsettings = 1;
    secondtitle.immunetodemofreecamera = 1;
    secondtitle.label = &"MP_WAGER_PLACE_NAME";
    secondtitle.playernum = i;
    secondtitle setplayernamestring( players[ i ] );
    playernamehudelems[ playernamehudelems.size ] = secondtitle;
    secondcp = createfontstring( font, othersize );
    secondcp setparent( secondtitle );
    secondcp setpoint( "TOP_RIGHT", "TOP_LEFT", 350, 0 );
    secondcp.glowalpha = 1;
    secondcp.hidewheninmenu = 0;
    secondcp.archived = 0;
    secondcp.immunetodemogamehudsettings = 1;
    secondcp.immunetodemofreecamera = 1;
    secondcp.label = &"MENU_POINTS";
    secondcp.currentvalue = 0;
    if ( isDefined( players[ i ].wagerwinnings ) )
    {
    secondcp.targetvalue = players[ i ].wagerwinnings;
    }
    else
    {
    secondcp.targetvalue = 0;
    }
    if ( secondcp.targetvalue > 0 )
    {
    secondcp.color = ( 0,42, 0,68, 0,46 );
    }
    secondcp setvalue( 0 );
    playercphudelems[ playercphudelems.size ] = secondcp;
    }
    i++;
    }
    self thread updatewageroutcome( playernamehudelems, playercphudelems );
    self thread resetwageroutcomenotify( playernamehudelems, playercphudelems, outcometitle, outcometext );
    if ( halftime )
    {
    return;
    }
    stillupdating = 1;
    countupduration = 2;
    cpincrement = 9999;
    if ( isDefined( playercphudelems[ 0 ] ) )
    {
    cpincrement = int( playercphudelems[ 0 ].targetvalue / ( countupduration / 0,05 ) );
    if ( cpincrement < 1 )
    {
    cpincrement = 1;
    }
    }
    while ( stillupdating )
    {
    stillupdating = 0;
    i = 0;
    while ( i < playercphudelems.size )
    {
    if ( isDefined( playercphudelems[ i ] ) && playercphudelems[ i ].currentvalue < playercphudelems[ i ].targetvalue )
    {
    playercphudelems[ i ].currentvalue += cpincrement;
    if ( playercphudelems[ i ].currentvalue > playercphudelems[ i ].targetvalue )
    {
    playercphudelems[ i ].currentvalue = playercphudelems[ i ].targetvalue;
    }
    playercphudelems[ i ] setvalue( playercphudelems[ i ].currentvalue );
    stillupdating = 1;
    }
    i++;
    }
    wait 0,05;
    }
    }
    
    Kalitos Offline
    Kalitos Offline
    Kalitos
    wrote on last edited by Kalitos
    #2

    Farzad said in [Support] Mono Syntax Error:

    titlesize = 2,5;

    Try like this:

    Edited::

     titlesize = 2.5;
    
    Farzad 1 Reply Last reply
    0
    • Kalitos Kalitos

      Farzad said in [Support] Mono Syntax Error:

      titlesize = 2,5;

      Try like this:

      Edited::

       titlesize = 2.5;
      
      Farzad Offline
      Farzad Offline
      Farzad
      wrote on last edited by
      #3

      Kalitos Nop, sorry bro it never worked 🙏🏼

      Kalitos 1 Reply Last reply
      0
      • Farzad Farzad

        Kalitos Nop, sorry bro it never worked 🙏🏼

        Kalitos Offline
        Kalitos Offline
        Kalitos
        wrote on last edited by
        #4

        Farzad Ok, Ok, I was wrong. If they are decimal numbers you should use a "." instead of ","

        Farzad 1 Reply Last reply
        0
        • Kalitos Kalitos

          Farzad Ok, Ok, I was wrong. If they are decimal numbers you should use a "." instead of ","

          Farzad Offline
          Farzad Offline
          Farzad
          wrote on last edited by
          #5

          Kalitos Line 64 error after I do that bro

          Kalitos 1 Reply Last reply
          0
          • Farzad Farzad

            Kalitos Line 64 error after I do that bro

            Kalitos Offline
            Kalitos Offline
            Kalitos
            wrote on last edited by
            #6

            Farzad It is the same error, in all the lines that are decimal numbers change "," by "."

            Farzad 1 Reply Last reply
            0
            • Kalitos Kalitos

              Farzad It is the same error, in all the lines that are decimal numbers change "," by "."

              Farzad Offline
              Farzad Offline
              Farzad
              wrote on last edited by
              #7

              Kalitos Changed. Outcome = Syntax error at line 58.

              Kalitos 1 Reply Last reply
              0
              • Farzad Farzad

                Kalitos Changed. Outcome = Syntax error at line 58.

                Kalitos Offline
                Kalitos Offline
                Kalitos
                wrote on last edited by
                #8

                Farzad I begin to believe that we are playing guessing games.
                Paste your current code with the modifications you say you have made.

                Farzad 2 Replies Last reply
                0
                • Kalitos Kalitos

                  Farzad I begin to believe that we are playing guessing games.
                  Paste your current code with the modifications you say you have made.

                  Farzad Offline
                  Farzad Offline
                  Farzad
                  wrote on last edited by
                  #9

                  Kalitos I’m not doing anything bro cmon, you can even see for yourself

                  1 Reply Last reply
                  0
                  • Kalitos Kalitos

                    Farzad I begin to believe that we are playing guessing games.
                    Paste your current code with the modifications you say you have made.

                    Farzad Offline
                    Farzad Offline
                    Farzad
                    wrote on last edited by Farzad
                    #10

                    Kalitos I thank you so much for helping me, but just face it, what you told me to modify gave me the same outcome I had from the start when attempting to compile. No need to come to assumptions bro, I’m just in need of help and no trouble

                    Kalitos 1 Reply Last reply
                    0
                    • Farzad Farzad

                      Kalitos I thank you so much for helping me, but just face it, what you told me to modify gave me the same outcome I had from the start when attempting to compile. No need to come to assumptions bro, I’m just in need of help and no trouble

                      Kalitos Offline
                      Kalitos Offline
                      Kalitos
                      wrote on last edited by
                      #11

                      Farzad I only asked you to put your code back to have a clearer idea of ​​your problem. since you have already made modifications to the original code that you put at the beginning of the topic.

                      Farzad 1 Reply Last reply
                      0
                      • Kalitos Kalitos

                        Farzad I only asked you to put your code back to have a clearer idea of ​​your problem. since you have already made modifications to the original code that you put at the beginning of the topic.

                        Farzad Offline
                        Farzad Offline
                        Farzad
                        wrote on last edited by
                        #12

                        Kalitos Oh well then. I just want help 👍🏻

                        1 Reply Last reply
                        0
                        • Emosewaj Offline
                          Emosewaj Offline
                          Emosewaj
                          VIP
                          wrote on last edited by
                          #13

                          All decimal numbers must be written as 0.0. Notice the . instead of the ,. And please indent your code properly, this is unreadable.

                          1 Reply Last reply
                          0
                          • Ox_ Offline
                            Ox_ Offline
                            Ox_
                            wrote on last edited by
                            #14

                            Code seems to be copy pasted from a decompiler. And that decompiler outputs decimals incorrectly (with a comma instead of a dot).
                            So just regex replace (?<=\d),(?=\d) with ..
                            (Or alternatively using capture groups regex replace (\d),(\d) with \1.\2)

                            Emosewaj 1 Reply Last reply
                            0
                            • Ox_ Ox_

                              Code seems to be copy pasted from a decompiler. And that decompiler outputs decimals incorrectly (with a comma instead of a dot).
                              So just regex replace (?<=\d),(?=\d) with ..
                              (Or alternatively using capture groups regex replace (\d),(\d) with \1.\2)

                              Emosewaj Offline
                              Emosewaj Offline
                              Emosewaj
                              VIP
                              wrote on last edited by
                              #15

                              Ox_ You're implying they know what regex or Search and Replace are, lol

                              Ox_ Farzad flox 4 Replies Last reply
                              0
                              • Emosewaj Emosewaj

                                Ox_ You're implying they know what regex or Search and Replace are, lol

                                Ox_ Offline
                                Ox_ Offline
                                Ox_
                                wrote on last edited by
                                #16

                                Emosewaj said in [Support] Mono Syntax Error:

                                Ox_ You're implying they know what regex or Search and Replace are, lol

                                I guess, but it's not like you need to know.
                                First link on Google gives you an online tool to which you copy paste exactly what I said and all done.

                                Farzad 1 Reply Last reply
                                0
                                • Ox_ Ox_

                                  Emosewaj said in [Support] Mono Syntax Error:

                                  Ox_ You're implying they know what regex or Search and Replace are, lol

                                  I guess, but it's not like you need to know.
                                  First link on Google gives you an online tool to which you copy paste exactly what I said and all done.

                                  Farzad Offline
                                  Farzad Offline
                                  Farzad
                                  wrote on last edited by
                                  #17
                                  This post is deleted!
                                  1 Reply Last reply
                                  0
                                  • Farzad Offline
                                    Farzad Offline
                                    Farzad
                                    wrote on last edited by
                                    #18

                                    Hi. I’ve replaced the outline colors with the RGB I like and I have also changed ROUND WIN to my text I want, and I checked to see if it would replace and it has But the server crashes 0.01 seconds before the killcam shows, the text is displayed, but the server crashes right right before the killcam shows, why?

                                    
                                    #include maps/mp/_utility;
                                    #include maps/mp/gametypes/_globallogic_audio;
                                    #include maps/mp/_music;
                                    #include maps/mp/gametypes/_hud_message;
                                    #include maps/mp/gametypes/_hud_util;
                                    
                                    init()
                                    {
                                    precachestring( &"MENU_POINTS" );
                                    precachestring( &"MP_FIRSTPLACE_NAME" );
                                    precachestring( &"MP_SECONDPLACE_NAME" );
                                    precachestring( &"MP_THIRDPLACE_NAME" );
                                    precachestring( &"MP_WAGER_PLACE_NAME" );
                                    precachestring( &"MP_MATCH_BONUS_IS" );
                                    precachestring( &"MP_CODPOINTS_MATCH_BONUS_IS" );
                                    precachestring( &"MP_WAGER_WINNINGS_ARE" );
                                    precachestring( &"MP_WAGER_SIDEBET_WINNINGS_ARE" );
                                    precachestring( &"MP_WAGER_IN_THE_MONEY" );
                                    precachestring( &"faction_popup" );
                                    game[ "strings" ][ "draw" ] = &"MP_DRAW_CAPS";
                                    game[ "strings" ][ "round_draw" ] = &"MP_ROUND_DRAW_CAPS";
                                    game[ "strings" ][ "round_win" ] = &"MP_ROUND_WIN_CAPS";
                                    game[ "strings" ][ "round_loss" ] = &"MP_ROUND_LOSS_CAPS";
                                    game[ "strings" ][ "victory" ] = &"MP_VICTORY_CAPS";
                                    game[ "strings" ][ "defeat" ] = &"MP_DEFEAT_CAPS";
                                    game[ "strings" ][ "game_over" ] = &"MP_GAME_OVER_CAPS";
                                    game[ "strings" ][ "halftime" ] = &"MP_HALFTIME_CAPS";
                                    game[ "strings" ][ "overtime" ] = &"MP_OVERTIME_CAPS";
                                    game[ "strings" ][ "roundend" ] = &"MP_ROUNDEND_CAPS";
                                    game[ "strings" ][ "intermission" ] = &"MP_INTERMISSION_CAPS";
                                    game[ "strings" ][ "side_switch" ] = &"MP_SWITCHING_SIDES_CAPS";
                                    game[ "strings" ][ "match_bonus" ] = &"MP_MATCH_BONUS_IS";
                                    game[ "strings" ][ "codpoints_match_bonus" ] = &"MP_CODPOINTS_MATCH_BONUS_IS";
                                    game[ "strings" ][ "wager_winnings" ] = &"MP_WAGER_WINNINGS_ARE";
                                    game[ "strings" ][ "wager_sidebet_winnings" ] = &"MP_WAGER_SIDEBET_WINNINGS_ARE";
                                    game[ "strings" ][ "wager_inthemoney" ] = &"MP_WAGER_IN_THE_MONEY_CAPS";
                                    game[ "strings" ][ "wager_loss" ] = &"MP_WAGER_LOSS_CAPS";
                                    game[ "strings" ][ "wager_topwinners" ] = &"MP_WAGER_TOPWINNERS";
                                    game[ "menu_endgameupdate" ] = "endgameupdate";
                                    precachemenu( game[ "menu_endgameupdate" ] );
                                    level thread onplayerconnect();
                                    }
                                    
                                    onplayerconnect()
                                    {
                                    for ( ;; )
                                    {
                                    level waittill( "connecting", player );
                                    player thread hintmessagedeaththink();
                                    player thread lowermessagethink();
                                    player thread initnotifymessage();
                                    player thread initcustomgametypeheader();
                                    }
                                    }
                                    
                                    initcustomgametypeheader()
                                    {
                                    font = "default";
                                    titlesize = 2,5;
                                    self.customgametypeheader = createfontstring( font, titlesize );
                                    self.customgametypeheader setpoint( "TOP", undefined, 0, 30 );
                                    self.customgametypeheader.glowalpha = 1;
                                    self.customgametypeheader.hidewheninmenu = 1;
                                    self.customgametypeheader.archived = 0;
                                    self.customgametypeheader.color = ( 1, 1, 0,6 );
                                    self.customgametypeheader.alpha = 1;
                                    titlesize = 2;
                                    self.customgametypesubheader = createfontstring( font, titlesize );
                                    self.customgametypesubheader setparent( self.customgametypeheader );
                                    self.customgametypesubheader setpoint( "TOP", "BOTTOM", 0, 0 );
                                    self.customgametypesubheader.glowalpha = 1;
                                    self.customgametypesubheader.hidewheninmenu = 1;
                                    self.customgametypesubheader.archived = 0;
                                    self.customgametypesubheader.color = ( 1, 1, 0,6 );
                                    self.customgametypesubheader.alpha = 1;
                                    }
                                    
                                    hintmessage( hinttext, duration )
                                    {
                                    notifydata = spawnstruct();
                                    notifydata.notifytext = hinttext;
                                    notifydata.duration = duration;
                                    notifymessage( notifydata );
                                    }
                                    
                                    hintmessageplayers( players, hinttext, duration )
                                    {
                                    notifydata = spawnstruct();
                                    notifydata.notifytext = hinttext;
                                    notifydata.duration = duration;
                                    i = 0;
                                    while ( i < players.size )
                                    {
                                    players[ i ] notifymessage( notifydata );
                                    i++;
                                    }
                                    }
                                    
                                    showinitialfactionpopup( team )
                                    {
                                    self luinotifyevent( &"faction_popup", 1, game[ "strings" ][ team + "_name" ] );
                                    maps/mp/gametypes/_hud_message::oldnotifymessage( undefined, undefined, undefined, undefined );
                                    }
                                    
                                    initnotifymessage()
                                    {
                                    if ( !sessionmodeiszombiesgame() )
                                    {
                                    if ( self issplitscreen() )
                                    {
                                    titlesize = 2;
                                    textsize = 1,4;
                                    iconsize = 24;
                                    font = "big";
                                    point = "TOP";
                                    relativepoint = "BOTTOM";
                                    yoffset = 30;
                                    xoffset = 30;
                                    }
                                    else
                                    {
                                    titlesize = 2,5;
                                    textsize = 1,75;
                                    iconsize = 30;
                                    font = "big";
                                    point = "TOP";
                                    relativepoint = "BOTTOM";
                                    yoffset = 0;
                                    xoffset = 0;
                                    }
                                    }
                                    else if ( self issplitscreen() )
                                    {
                                    titlesize = 2;
                                    textsize = 1,4;
                                    iconsize = 24;
                                    font = "big";
                                    point = "TOP";
                                    relativepoint = "BOTTOM";
                                    yoffset = 30;
                                    xoffset = 30;
                                    }
                                    else
                                    {
                                    titlesize = 2,5;
                                    textsize = 1,75;
                                    iconsize = 30;
                                    font = "big";
                                    point = "BOTTOM LEFT";
                                    relativepoint = "TOP";
                                    yoffset = 0;
                                    xoffset = 0;
                                    }
                                    self.notifytitle = createfontstring( font, titlesize );
                                    self.notifytitle setpoint( point, undefined, xoffset, yoffset );
                                    self.notifytitle.glowalpha = 1;
                                    self.notifytitle.hidewheninmenu = 1;
                                    self.notifytitle.archived = 0;
                                    self.notifytitle.alpha = 0;
                                    self.notifytext = createfontstring( font, textsize );
                                    self.notifytext setparent( self.notifytitle );
                                    self.notifytext setpoint( point, relativepoint, 0, 0 );
                                    self.notifytext.glowalpha = 1;
                                    self.notifytext.hidewheninmenu = 1;
                                    self.notifytext.archived = 0;
                                    self.notifytext.alpha = 0;
                                    self.notifytext2 = createfontstring( font, textsize );
                                    self.notifytext2 setparent( self.notifytitle );
                                    self.notifytext2 setpoint( point, relativepoint, 0, 0 );
                                    self.notifytext2.glowalpha = 1;
                                    self.notifytext2.hidewheninmenu = 1;
                                    self.notifytext2.archived = 0;
                                    self.notifytext2.alpha = 0;
                                    self.notifyicon = createicon( "white", iconsize, iconsize );
                                    self.notifyicon setparent( self.notifytext2 );
                                    self.notifyicon setpoint( point, relativepoint, 0, 0 );
                                    self.notifyicon.hidewheninmenu = 1;
                                    self.notifyicon.archived = 0;
                                    self.notifyicon.alpha = 0;
                                    self.doingnotify = 0;
                                    self.notifyqueue = [];
                                    }
                                    
                                    oldnotifymessage( titletext, notifytext, iconname, glowcolor, sound, duration )
                                    {
                                    if ( level.wagermatch && !level.teambased )
                                    {
                                    return;
                                    }
                                    notifydata = spawnstruct();
                                    notifydata.titletext = titletext;
                                    notifydata.notifytext = notifytext;
                                    notifydata.iconname = iconname;
                                    notifydata.sound = sound;
                                    notifydata.duration = duration;
                                    self.startmessagenotifyqueue[ self.startmessagenotifyqueue.size ] = notifydata;
                                    self notify( "received award" );
                                    }
                                    
                                    notifymessage( notifydata )
                                    {
                                    self endon( "death" );
                                    self endon( "disconnect" );
                                    self.messagenotifyqueue[ self.messagenotifyqueue.size ] = notifydata;
                                    self notify( "received award" );
                                    }
                                    
                                    playnotifyloop( duration )
                                    {
                                    playnotifyloop = spawn( "script_origin", ( 1, 1, 1 ) );
                                    playnotifyloop playloopsound( "uin_notify_data_loop" );
                                    duration -= 4;
                                    if ( duration < 1 )
                                    {
                                    duration = 1;
                                    }
                                    wait duration;
                                    playnotifyloop delete();
                                    }
                                    
                                    shownotifymessage( notifydata, duration )
                                    {
                                    self endon( "disconnect" );
                                    self.doingnotify = 1;
                                    waitrequirevisibility( 0 );
                                    self notify( "notifyMessageBegin" );
                                    self thread resetoncancel();
                                    if ( isDefined( notifydata.sound ) )
                                    {
                                    self playlocalsound( notifydata.sound );
                                    }
                                    if ( isDefined( notifydata.musicstate ) )
                                    {
                                    self maps/mp/_music::setmusicstate( notifydata.music );
                                    }
                                    if ( isDefined( notifydata.leadersound ) )
                                    {
                                    self maps/mp/gametypes/_globallogic_audio::leaderdialogonplayer( notifydata.leadersound );
                                    }
                                    if ( isDefined( notifydata.glowcolor ) )
                                    {
                                    glowcolor = notifydata.glowcolor;
                                    }
                                    else
                                    {
                                    glowcolor = ( 1, 1, 1 );
                                    }
                                    if ( isDefined( notifydata.color ) )
                                    {
                                    color = notifydata.color;
                                    }
                                    else
                                    {
                                    color = ( 1, 1, 1 );
                                    }
                                    anchorelem = self.notifytitle;
                                    if ( isDefined( notifydata.titletext ) )
                                    {
                                    if ( isDefined( notifydata.titlelabel ) )
                                    {
                                    self.notifytitle.label = notifydata.titlelabel;
                                    }
                                    else
                                    {
                                    self.notifytitle.label = &"";
                                    }
                                    if ( isDefined( notifydata.titlelabel ) && !isDefined( notifydata.titleisstring ) )
                                    {
                                    self.notifytitle setvalue( notifydata.titletext );
                                    }
                                    else
                                    {
                                    self.notifytitle settext( notifydata.titletext );
                                    }
                                    self.notifytitle setcod7decodefx( 200, int( duration * 1000 ), 600 );
                                    self.notifytitle.glowcolor = glowcolor;
                                    self.notifytitle.color = color;
                                    self.notifytitle.alpha = 1;
                                    }
                                    if ( isDefined( notifydata.notifytext ) )
                                    {
                                    if ( isDefined( notifydata.textlabel ) )
                                    {
                                    self.notifytext.label = notifydata.textlabel;
                                    }
                                    else
                                    {
                                    self.notifytext.label = &"";
                                    }
                                    if ( isDefined( notifydata.textlabel ) && !isDefined( notifydata.textisstring ) )
                                    {
                                    self.notifytext setvalue( notifydata.notifytext );
                                    }
                                    else
                                    {
                                    self.notifytext settext( notifydata.notifytext );
                                    }
                                    self.notifytext setcod7decodefx( 100, int( duration * 1000 ), 600 );
                                    self.notifytext.glowcolor = glowcolor;
                                    self.notifytext.color = color;
                                    self.notifytext.alpha = 1;
                                    anchorelem = self.notifytext;
                                    }
                                    if ( isDefined( notifydata.notifytext2 ) )
                                    {
                                    if ( self issplitscreen() )
                                    {
                                    if ( isDefined( notifydata.text2label ) )
                                    {
                                    self iprintlnbold( notifydata.text2label, notifydata.notifytext2 );
                                    }
                                    else
                                    {
                                    self iprintlnbold( notifydata.notifytext2 );
                                    }
                                    }
                                    else
                                    {
                                    self.notifytext2 setparent( anchorelem );
                                    if ( isDefined( notifydata.text2label ) )
                                    {
                                    self.notifytext2.label = notifydata.text2label;
                                    }
                                    else
                                    {
                                    self.notifytext2.label = &"";
                                    }
                                    self.notifytext2 settext( notifydata.notifytext2 );
                                    self.notifytext2 setpulsefx( 100, int( duration * 1000 ), 1000 );
                                    self.notifytext2.glowcolor = glowcolor;
                                    self.notifytext2.color = color;
                                    self.notifytext2.alpha = 1;
                                    anchorelem = self.notifytext2;
                                    }
                                    }
                                    if ( isDefined( notifydata.iconname ) )
                                    {
                                    iconwidth = 60;
                                    iconheight = 60;
                                    if ( isDefined( notifydata.iconwidth ) )
                                    {
                                    iconwidth = notifydata.iconwidth;
                                    }
                                    if ( isDefined( notifydata.iconheight ) )
                                    {
                                    iconheight = notifydata.iconheight;
                                    }
                                    self.notifyicon setparent( anchorelem );
                                    self.notifyicon setshader( notifydata.iconname, iconwidth, iconheight );
                                    self.notifyicon.alpha = 0;
                                    self.notifyicon fadeovertime( 1 );
                                    self.notifyicon.alpha = 1;
                                    waitrequirevisibility( duration );
                                    self.notifyicon fadeovertime( 0,75 );
                                    self.notifyicon.alpha = 0;
                                    }
                                    else
                                    {
                                    waitrequirevisibility( duration );
                                    }
                                    self notify( "notifyMessageDone" );
                                    self.doingnotify = 0;
                                    }
                                    
                                    waitrequirevisibility( waittime )
                                    {
                                    interval = 0,05;
                                    while ( !self canreadtext() )
                                    {
                                    wait interval;
                                    }
                                    while ( waittime > 0 )
                                    {
                                    wait interval;
                                    if ( self canreadtext() )
                                    {
                                    waittime -= interval;
                                    }
                                    }
                                    }
                                    
                                    canreadtext()
                                    {
                                    if ( self maps/mp/_utility::isflashbanged() )
                                    {
                                    return 0;
                                    }
                                    return 1;
                                    }
                                    
                                    resetondeath()
                                    {
                                    self endon( "notifyMessageDone" );
                                    self endon( "disconnect" );
                                    level endon( "game_ended" );
                                    self waittill( "death" );
                                    resetnotify();
                                    }
                                    
                                    resetoncancel()
                                    {
                                    self notify( "resetOnCancel" );
                                    self endon( "resetOnCancel" );
                                    self endon( "notifyMessageDone" );
                                    self endon( "disconnect" );
                                    level waittill( "cancel_notify" );
                                    resetnotify();
                                    }
                                    
                                    resetnotify()
                                    {
                                    self.notifytitle.alpha = 0;
                                    self.notifytext.alpha = 0;
                                    self.notifyicon.alpha = 0;
                                    self.doingnotify = 0;
                                    }
                                    
                                    hintmessagedeaththink()
                                    {
                                    self endon( "disconnect" );
                                    for ( ;; )
                                    {
                                    self waittill( "death" );
                                    if ( isDefined( self.hintmessage ) )
                                    {
                                    self.hintmessage destroyelem();
                                    }
                                    }
                                    }
                                    
                                    lowermessagethink()
                                    {
                                    self endon( "disconnect" );
                                    messagetexty = level.lowertexty;
                                    if ( self issplitscreen() )
                                    {
                                    messagetexty = level.lowertexty - 50;
                                    }
                                    self.lowermessage = createfontstring( "default", level.lowertextfontsize );
                                    self.lowermessage setpoint( "CENTER", level.lowertextyalign, 0, messagetexty );
                                    self.lowermessage settext( "" );
                                    self.lowermessage.archived = 0;
                                    timerfontsize = 1,5;
                                    if ( self issplitscreen() )
                                    {
                                    timerfontsize = 1,4;
                                    }
                                    self.lowertimer = createfontstring( "default", timerfontsize );
                                    self.lowertimer setparent( self.lowermessage );
                                    self.lowertimer setpoint( "TOP", "BOTTOM", 0, 0 );
                                    self.lowertimer settext( "" );
                                    self.lowertimer.archived = 0;
                                    }
                                    
                                    setmatchscorehudelemforteam( team )
                                    {
                                    if ( level.roundscorecarry )
                                    {
                                    self setvalue( getteamscore( team ) );
                                    }
                                    else
                                    {
                                    self setvalue( getroundswon( team ) );
                                    }
                                    }
                                    
                                    teamoutcomenotify( winner, isround, endreasontext )
                                    {
                                    self endon( "disconnect" );
                                    self notify( "reset_outcome" );
                                    team = self.pers[ "team" ];
                                    while ( isDefined( team ) && team == "spectator" )
                                    {
                                    i = 0;
                                    while ( i < level.players.size )
                                    {
                                    if ( self.currentspectatingclient == level.players[ i ].clientid )
                                    {
                                    team = level.players[ i ].pers[ "team" ];
                                    break;
                                    }
                                    else
                                    {
                                    i++;
                                    }
                                    }
                                    }
                                    if ( !isDefined( team ) || !isDefined( level.teams[ team ] ) )
                                    {
                                    team = "allies";
                                    }
                                    while ( self.doingnotify )
                                    {
                                    wait 0,05;
                                    }
                                    self endon( "reset_outcome" );
                                    headerfont = "extrabig";
                                    font = "default";
                                    if ( self issplitscreen() )
                                    {
                                    titlesize = 2;
                                    textsize = 1,5;
                                    iconsize = 30;
                                    spacing = 10;
                                    }
                                    else
                                    {
                                    titlesize = 3;
                                    textsize = 2;
                                    iconsize = 70;
                                    spacing = 25;
                                    }
                                    duration = 60000;
                                    outcometitle = createfontstring( headerfont, titlesize );
                                    outcometitle setpoint( "TOP", undefined, 0, 30 );
                                    outcometitle.glowalpha = 1;
                                    outcometitle.hidewheninmenu = 0;
                                    outcometitle.archived = 0;
                                    outcometitle.immunetodemogamehudsettings = 1;
                                    outcometitle.immunetodemofreecamera = 1;
                                    outcometext = createfontstring( font, 2 );
                                    outcometext setparent( outcometitle );
                                    outcometext setpoint( "TOP", "BOTTOM", 0, 0 );
                                    outcometext.glowalpha = 1;
                                    outcometext.hidewheninmenu = 0;
                                    outcometext.archived = 0;
                                    outcometext.immunetodemogamehudsettings = 1;
                                    outcometext.immunetodemofreecamera = 1;
                                    if ( winner == "halftime" )
                                    {
                                    outcometitle settext( game[ "strings" ][ "halftime" ] );
                                    outcometitle.color = ( 1, 1, 1 );
                                    winner = "allies";
                                    }
                                    else if ( winner == "intermission" )
                                    {
                                    outcometitle settext( game[ "strings" ][ "intermission" ] );
                                    outcometitle.color = ( 1, 1, 1 );
                                    winner = "allies";
                                    }
                                    else if ( winner == "roundend" )
                                    {
                                    outcometitle settext( game[ "strings" ][ "roundend" ] );
                                    outcometitle.color = ( 1, 1, 1 );
                                    winner = "allies";
                                    }
                                    else if ( winner == "overtime" )
                                    {
                                    outcometitle settext( game[ "strings" ][ "overtime" ] );
                                    outcometitle.color = ( 1, 1, 1 );
                                    winner = "allies";
                                    }
                                    else if ( winner == "tie" )
                                    {
                                    if ( isround )
                                    {
                                    outcometitle settext( game[ "strings" ][ "round_draw" ] );
                                    }
                                    else
                                    {
                                    outcometitle settext( game[ "strings" ][ "draw" ] );
                                    }
                                    outcometitle.color = ( 0,29, 0,61, 0,7 );
                                    winner = "allies";
                                    }
                                    else if ( isDefined( self.pers[ "team" ] ) && winner == team )
                                    {
                                    if ( isround )
                                    {
                                    outcometitle settext( game[ "strings" ][ "round_win" ] );
                                    }
                                    else
                                    {
                                    outcometitle settext( game[ "strings" ][ "victory" ] );
                                    }
                                    outcometitle.color = ( 0,42, 0,68, 0,46 );
                                    if ( isDefined( level.endvictoryreasontext ) )
                                    {
                                    endreasontext = level.endvictoryreasontext;
                                    }
                                    }
                                    else
                                    {
                                    if ( isround )
                                    {
                                    outcometitle settext( game[ "strings" ][ "round_loss" ] );
                                    }
                                    else
                                    {
                                    outcometitle settext( game[ "strings" ][ "defeat" ] );
                                    }
                                    outcometitle.color = ( 0,73, 0,29, 0,19 );
                                    if ( isDefined( level.enddefeatreasontext ) )
                                    {
                                    endreasontext = level.enddefeatreasontext;
                                    }
                                    }
                                    outcometext settext( endreasontext );
                                    outcometitle setcod7decodefx( 200, duration, 600 );
                                    outcometext setpulsefx( 100, duration, 1000 );
                                    iconspacing = 100;
                                    currentx = ( ( level.teamcount - 1 ) * -1 * iconspacing ) / 2;
                                    teamicons = [];
                                    teamicons[ team ] = createicon( game[ "icons" ][ team ], iconsize, iconsize );
                                    teamicons[ team ] setparent( outcometext );
                                    teamicons[ team ] setpoint( "TOP", "BOTTOM", currentx, spacing );
                                    teamicons[ team ].hidewheninmenu = 0;
                                    teamicons[ team ].archived = 0;
                                    teamicons[ team ].immunetodemogamehudsettings = 1;
                                    teamicons[ team ].immunetodemofreecamera = 1;
                                    teamicons[ team ].alpha = 0;
                                    teamicons[ team ] fadeovertime( 0,5 );
                                    teamicons[ team ].alpha = 1;
                                    currentx += iconspacing;
                                    _a650 = level.teams;
                                    _k650 = getFirstArrayKey( _a650 );
                                    while ( isDefined( _k650 ) )
                                    {
                                    enemyteam = _a650[ _k650 ];
                                    if ( team == enemyteam )
                                    {
                                    }
                                    
                                    1 Reply Last reply
                                    0
                                    • Ox_ Offline
                                      Ox_ Offline
                                      Ox_
                                      wrote on last edited by
                                      #19

                                      The code is still broken in the exact same way it was in your previous thread.

                                      Farzad 2 Replies Last reply
                                      0
                                      • Mr. Android Offline
                                        Mr. Android Offline
                                        Mr. Android
                                        Plutonium Admin
                                        wrote on last edited by
                                        #20

                                        Topics merged, don't create multiple threads for the same topic.

                                        1 Reply Last reply
                                        0
                                        • Sass Offline
                                          Sass Offline
                                          Sass
                                          Plutonium Staff
                                          wrote on last edited by Sass
                                          #21

                                          Just out of curiosity, would you mind telling us where you got this code from ? I copy-pasted some random snippets I found to be odd into Google, and it leads me to Black Ops 3 forums.

                                          Farzad 1 Reply Last reply
                                          0

                                          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                          With your input, this post could be even better 💗

                                          Register Login
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • 1
                                          • 2
                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Unread 0
                                          • Recent
                                          • Tags
                                          • Popular
                                          • Users
                                          • Groups
                                          • Donate