What is &&1?

broken avatar :(
Created 161 days ago
by Rex109
0 Members and 1 Guest are viewing this topic.
388 views
broken avatar :(
×
broken avatar :(
Location: itItaly
Date Registered: 23 December 2015
Last active: 74 days ago
Posts
3
Respect
Forum Rank
Fresh Corpse
Primary Group
Member
Personal Quote
DAPHUCK?!
×
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:

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

or

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: 8 days ago
Posts
1,185
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 LinksAsk MeMZslayer11MZslayer11MZslayer11
&&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: 5 days ago
Posts
6,878
Respect
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: 8 days ago
Posts
1,185
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 LinksAsk MeMZslayer11MZslayer11MZslayer11
Yeah what he said
broken avatar :(
×
broken avatar :(
Location: itItaly
Date Registered: 23 December 2015
Last active: 74 days ago
Posts
3
Respect
Forum Rank
Fresh Corpse
Primary Group
Member
Personal Quote
DAPHUCK?!
×
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: 28 minutes ago
Posts
206
Respect
Forum Rank
Mr. Elemental
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Personal Quote
I love skulls
Signature
The official game when it comes out, maybe.  As long as it isn't just passed call of duties copied.  But wait, Black ops 4 is a complete copy of the Chinese Call Of Duty Online.

You wot dude!
×
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 LinksDistenc5Teffrie
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: itItaly
Date Registered: 23 December 2015
Last active: 74 days ago
Posts
3
Respect
Forum Rank
Fresh Corpse
Primary Group
Member
Personal Quote
DAPHUCK?!
×
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.

    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 ...