UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

What is &&1?

broken avatar :(
Created 6 years ago
by Rex109
0 Members and 1 Guest are viewing this topic.
2,128 views
broken avatar :(
×
broken avatar :(
Location: it
Date Registered: 23 December 2015
Last active: 2 years ago
Posts
4
Respect
Forum Rank
Fresh Corpse
Primary Group
Member
×
Rex109's Groups
Rex109's Contact & Social Links
Hi guys! I'm really new to the forum so forgive me if i am in the wrong section. so... i found a sample script that contains "&&1" in a string, what does it means?
for example:

Code Snippet
Plaintext
self.secretTimer.label = &"Time in left: &&1";

or

Code Snippet
Plaintext
trig sethintstring("Press ^1&&1^7 to select Music");

Please help! i couldn't find nothing on internet.
broken avatar :(
×
broken avatar :(
Location: usUnited States
Date Registered: 7 March 2014
Last active: 2 months ago
Posts
1,191
Respect
Forum Rank
Zombie Colossus
Primary Group
UGX Site Moderator
My Groups
More
My Contact & Social Links
More
×
MZslayer11's Groups
UGX Site Moderator Has the ability to issue warnings to users, edit and remove posts from the forum and to move topics to other boards. Upholds the rules of the forum. Moderates Chat Rooms.
MZslayer11's Contact & Social LinksMZslayer11Service_Code_30#2655
&&1 is the keybinding for the 'use' key. You need to keep that in there.
broken avatar :(
×
broken avatar :(
Location: gbMilton Keynes
Date Registered: 17 January 2014
Last active: 4 years ago
Posts
6,877
Respect
1,004Add +1
Forum Rank
Immortal
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Signature
If you want scripts / features made for you, then contact me by PM or email / skype etc
it will cost you tho so if you have no intention of reciprocating don't even waste my time ;)
×
Harry Bo21's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
Harry Bo21's Contact & Social Links[email protected]HarryBo21HarryBo000
It’s not always the keybind- depends on the context

[{+activate}] is the use button

Top one is a localised string - &””
Last Edit: May 15, 2018, 02:25:55 am by Harry Bo21
broken avatar :(
×
broken avatar :(
Location: usUnited States
Date Registered: 7 March 2014
Last active: 2 months ago
Posts
1,191
Respect
Forum Rank
Zombie Colossus
Primary Group
UGX Site Moderator
My Groups
More
My Contact & Social Links
More
×
MZslayer11's Groups
UGX Site Moderator Has the ability to issue warnings to users, edit and remove posts from the forum and to move topics to other boards. Upholds the rules of the forum. Moderates Chat Rooms.
MZslayer11's Contact & Social LinksMZslayer11Service_Code_30#2655
Yeah what he said
broken avatar :(
×
broken avatar :(
Location: it
Date Registered: 23 December 2015
Last active: 2 years ago
Posts
4
Respect
Forum Rank
Fresh Corpse
Primary Group
Member
×
Rex109's Groups
Rex109's Contact & Social Links
It’s not always the keybind- depends on the context

[{+activate}] is the use button

Top one is a localised string - &””

Is there anything that i can read to learn about it? Like an online handbook or smth like that
broken avatar :(
×
broken avatar :(
Location: nl
Date Registered: 20 September 2013
Last active: 2 days ago
Posts
645
Respect
Forum Rank
Zombie Enslaver
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Personal Quote
No code is bug free
Signature
My published cod maps:

Subzero
Djinncaves
Enclosed (a.k.a baconcube)
Bayern
Snowblind
Furtrelock

Black Ops Perks: https://www.ugx-mods.com/forum/scripts/55/call-of-duty-world-at-war-black-ops-perks/22180/
×
gympie6's Groups
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
gympie6's Contact & Social LinksTheRevenantSkullTeffrieTeffrieGympie5#5971
Is there anything that i can read to learn about it? Like an online handbook or smth like that

Have you checked this page?:
https://confluence.ugx-mods.com/display/UGXMODS/Scripting+Guide

This is a wiki for making cod mods
broken avatar :(
×
broken avatar :(
Location: it
Date Registered: 23 December 2015
Last active: 2 years ago
Posts
4
Respect
Forum Rank
Fresh Corpse
Primary Group
Member
×
Rex109's Groups
Rex109's Contact & Social Links
Have you checked this page?:
https://confluence.ugx-mods.com/display/UGXMODS/Scripting+Guide

This is a wiki for making cod mods

No, don't worry 'bout that, i know how to script, i wasn't sure about the &&1 thingy.

Btw, i found something about localized string, BUT as you can see from this line of code it refers to a numeric value that is dynamic and changes every second.

Code Snippet
Plaintext
    self endon("secret_done");
    if(isdefined(self.secretTimer))
    self.secretTimer destroy();
    self.secretTimer=newclienthudelem(self);
    self.secretTimer.foreground = true;
    self.secretTimer.alignX = "center";
    self.secretTimer.alignY = "bottom";
    self.secretTimer.horzAlign = "center";
    self.secretTimer.vertAlign = "bottom";
    self.secretTimer.x = 0;
    self.secretTimer.y = -7;
    self.secretTimer.sort = 5;
    self.secretTimer.fontScale = 1.6;
    self.secretTimer.font = "default";
    self.secretTimer.glowAlpha = 1;
    self.secretTimer.hidewheninmenu = true;
       self.secretTimer.label = &"Time in left: &&1";
 
    if(isdefined(level.randomcolor))
        self.secretTimer.glowColor=level.randomcolor;
    else
        self.secretTimer.glowColor=(1,0,0);
    time=120;
    for(i=0;i<time;i++)
    {
        self.secretTimer setvalue(time-i);
        wait 1;
    }
    self.secretTimer setvalue(0);
    self suicide();
    if(isdefined(self.secretTimer))
    self.secretTimer destroy();

I repeat i DIDN'T WROTE THIS CODE

 
Loading ...