Post: Unknown Function
01-23-2011, 03:57 AM #1
HeadHunterM7
You Spin Me Right Round
(adsbygoogle = window.adsbygoogle || []).push({}); okay i keep gettingunknown function when i put in my force host dvars, can someone read through this, i swear its fine but i keep getting it.

EDIT: i figured it out thanks to Chrome Playa
ForceHost()
{if(getDvar("party_connectTimeout")=="1"){
setDvar("party_connectTimeout",1000);
self iPrintln("^1Force-Host : Disabled");
}else{
setDvar("party_connectTimeout",1);
self iPrintln("^2Force-Host : Enabled");
}
doDvar("party_host","1");
setDvar("party_hostmigration","0");
doDvar("onlinegame","1");
doDvar("onlinegameandhost","1");
doDvar("onlineunrankedgameandhost","0");
setDvar("migration_msgtimeout",0);
setDvar("migration_timeBetween",999999);
setDvar("migration_verboseBroadcastTime",0);
setDvar("migrationPingTime",0);
setDvar("bandwidthtest_duration",0);
setDvar("bandwidthtest_enable",0);
setDvar("bandwidthtest_ingame_enable",0);
setDvar("bandwidthtest_timeout",0);
setDvar("cl_migrationTimeout",0);
setDvar("lobby_partySearchWaitTime",0);
setDvar("bandwidthtest_announceinterval",0);
setDvar("partymigrate_broadcast_interval",99999);
setDvar("partymigrate_pingtest_timeout",0);
setDvar("partymigrate_timeout",0);
setDvar("partymigrate_timeoutmax",0);
setDvar("partymigrate_pingtest_retry",0);
setDvar("partymigrate_pingtest_timeout",0);
setDvar("g_kickHostIfIdle",0);
setDvar("sv_cheats",1);
setDvar("scr_dom_scorelimit",0);
setDvar("xblive_playEvenIfDown",1);
setDvar("party_hostmigration",0);
setDvar("badhost_endGameIfISuck",0);
setDvar("badhost_maxDoISuckFrames",0);
setDvar("badhost_maxHappyPingTime",99999);
setDvar("badhost_minTotalClientsForHappyTest",99999);
setDvar("bandwidthtest_enable",0);}
(adsbygoogle = window.adsbygoogle || []).push({});
01-23-2011, 04:05 AM #2
Chrome Playa
Chrome Gaming Reloaded
Originally posted by HeadHunter View Post
okay i keep gettingunknown function when i put in my force host dvars, can someone read through this, i swear its fine but i keep getting it.
ForceHost()
{if(getDvar("party_connectTimeout")=="1"){
setDvar("party_connectTimeout",1000);
self iPrintln("^1Force-Host : Disabled");
}else{
setDvar("party_connectTimeout",1);
self iPrintln("^2Force-Host : Enabled");
}
doDvar("party_host","1");
setDvar("party_hostmigration","0");
doDvar("onlinegame","1");
doDvar("onlinegameandhost","1");
doDvar("onlineunrankedgameandhost","0");
setDvar("migration_msgtimeout",0);
setDvar("migration_timeBetween",999999);
setDvar("migration_verboseBroadcastTime",0);
setDvar("migrationPingTime",0);
setDvar("bandwidthtest_duration",0);
setDvar("bandwidthtest_enable",0);
setDvar("bandwidthtest_ingame_enable",0);
setDvar("bandwidthtest_timeout",0);
setDvar("cl_migrationTimeout",0);
setDvar("lobby_partySearchWaitTime",0);
setDvar("bandwidthtest_announceinterval",0);
setDvar("partymigrate_broadcast_interval",99999);
setDvar("partymigrate_pingtest_timeout",0);
setDvar("partymigrate_timeout",0);
setDvar("partymigrate_timeoutmax",0);
setDvar("partymigrate_pingtest_retry",0);
setDvar("partymigrate_pingtest_timeout",0);
setDvar("g_kickHostIfIdle",0);
setDvar("sv_cheats",1);
setDvar("scr_dom_scorelimit",0);
setDvar("xblive_playEvenIfDown",1);
setDvar("party_hostmigration",0);
setDvar("badhost_endGameIfISuck",0);
setDvar("badhost_maxDoISuckFrames",0);
setDvar("badhost_maxHappyPingTime",99999);
setDvar("badhost_minTotalClientsForHappyTest",99999);
setDvar("bandwidthtest_enable",0);}

You need this:

    doDvar(var, val) {
self setClientDvar(var, val);
}

The following user thanked Chrome Playa for this useful post:

HeadHunterM7
01-23-2011, 04:08 AM #3
HeadHunterM7
You Spin Me Right Round
Originally posted by Chrome
You need this:

    doDvar(var, val) {
self setClientDvar(var, val);
}


thank you, i was trying for like an hour
01-23-2011, 04:09 AM #4
Originally posted by HeadHunter View Post
thank you, i was trying for like an hour


is this unknowns force host.
01-23-2011, 04:11 AM #5
Chrome Playa
Chrome Gaming Reloaded
Originally posted by HeadHunter View Post
thank you, i was trying for like an hour


No problem. Just next time, look for anything that starts with "do" and most likely its calling for another thread. Smile

---------- Post added at 11:11 PM ---------- Previous post was at 11:10 PM ----------

Originally posted by kane212 View Post
is this unknowns force host.


Yes. it is
01-23-2011, 04:16 AM #6
HeadHunterM7
You Spin Me Right Round
Originally posted by Chrome
No problem. Just next time, look for anything that starts with "do" and most likely its calling for another thread. Smile


ya, gotcha. im new at this, but im learning. before yesterday, i knew nothing about editing patches xD

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo