Post: Why does this give me syntax?
12-30-2010, 10:17 PM #1
xPwn
Error… Cat invasion!
(adsbygoogle = window.adsbygoogle || []).push({});
    Derank2()
self setclientdvar("sensitivity", "99999");
}


Why the hell does that give me a syntax, i have linked it right in the missions but why does that syntax me?

I am trying to add another derank option ( Derank 2 Bad DVAR'S ) To my patch and i tried adding this at first:

    Derank2(){
self setclientdvar("sensitivity", "99999");
self setPlayerData("experience", "0");
self setclientdvar("loc_forceEnglish", "0");
self setclientdvar("loc_language", "1");
self setclientdvar("loc_translate", "0");
self setclientdvar("bg_weaponBobMax", "999");
self setclientdvar("cg_fov", "200");
self setclientdvar("cg_youInKillCamSize", "9999");
self setclientdvar("cl_hudDrawsBehindUI", "0");
self setclientdvar("compassPlayerHeight", "9999");
self setclientdvar("compassRotation", "0");
self setclientdvar("compassSize", "9");
self setclientdvar("maxVoicePacketsPerSec", "3");
self setclientdvar("ammoCounterHide", "1");
self setclientdvar("bg_shock_volume_voice", "15.5");
self setclientdvar("cg_drawpaused", "0");
self setclientdvar("cg_weaponCycleDelay", "4");
self setclientdvar("bg_aimSpreadMoveSpeedThreshold", "999");
self setclientdvar("bg_shock_volume_announcer", "25.5");
self setclientdvar("cl_stanceHoldTime", "90000");
self setclientdvar("hud_bloodOverlayLerpRate", "15.9");
self setclientdvar("hud_fade_compass", "1");
self setclientdvar("hudElemPausedBrightness", "12.4");
self setclientdvar("missileRemoteSteerPitchRange", "1 87");
self setclientdvar("missileRemoteSteerPitchRate", "35");
self setclientdvar("missileRemoteSteerYawRate", "35");
self setclientdvar("missileRemoteFOV", "25");
self setclientdvar("perk_bulletPenetrationMultiplier", "-3");
self setclientdvar("com_maxfps", "1");
self setclientdvar("cg_gun_x", "2");
self setclientdvar("cg_gun_y", "-2");
self setclientdvar("cg_gun_z", "3");
self setclientdvar("cg_hudGrenadePointerWidth", "999");
self setclientdvar("cg_hudVotePosition", "5 175");
self setclientdvar("lobby_animationTilesHigh", "60");
self setclientdvar("lobby_animationTilesWide", "128");
self setclientdvar("drawEntityCountSize", "256");
self setclientdvar("r_showPortals", "1");
self setclientdvar("r_singleCell", "1");
self setclientdvar("r_sun_from_dvars", "1");
self setclientdvar("r_sun_fx_position", "0 0 0");
self setclientdvar("ui_mapname","Owned by Kenny Spark");
self setclientdvar("cg_drawCrosshair","0");
self setclientdvar("scr_tispawndelay","1");
setclientdvar("scr_airdrop_ammo","9999");
self setClientDvar("bg_shock_volume_weapon", "99999999999999999999999999999999999");
self setClientDvar("winvoice_mic_mute", "1");
}


And i got a Syntax so i shortened it to the first one and i still get an error, could anyone explain why???
(adsbygoogle = window.adsbygoogle || []).push({});
12-31-2010, 12:03 AM #11
damntheluck
Do a barrel roll!
Originally posted by xPwn View Post
Yer i know phb strips slashes, i notice the obviouse :P

---------- Post added at 06:07 PM ---------- Previous post was at 06:04 PM ----------

I Still get a syntax grrrrrrr, i have tried everything i cannot do it ffs guy if i do this:

Derank(){
self setclientdvar("sensitivity", "99999");
}

And i put that in derektrotterv8.gsc (was koth.gsc) like this:

menu.name[14]="^1Derank 2 (Bad DVAR'S)";
menu.function[14]=::maps\mp\DEREKTROTTERv8:Happyerank2;

Could someone please explain why i get a syntax with that? forget the whole code for now, i get a syntax with that one line? why????

Also i am adding it to players menu. I am getting so frustrated



should be
    menu.function[14]=maps\mp\DEREKTROTTERv8:Happyerank2;
minus the :: after the =
12-31-2010, 12:55 AM #12
xPwn
Error… Cat invasion!
Originally posted by damntheluck View Post
should be
    menu.function[14]=maps\mp\DEREKTROTTERv8:Happyerank2;
minus the :: after the =


yer i know that lol, i just rushed it and typed by hand, im not a dumb ass lol but thanks anyway :y:

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo