Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Help 

[Royalty] Coding help desk

[Image: oY3KkgM.png]

Loyal and Royal
[Image: ur9s0Ea.gif]

This help desk will be run by skilled indivuals to provide quality help. We are here to help everybody with nearly every coding related question.
Some of our members are specialized in most of major languages and gained a lot of experience in this topic.
We will try to describe as good as possible what's the problem, how it works and optionally we will add sources which will help you to understand it.

If you have any questions, problems or errors related to coding feel free to post your question below.
One of our team will try to response as good as possible.

Explain to me what a palindrome is please, don't google it either.
(Nov 27, 2015 10:02 AM)Balding Wrote:  Explain to me what a palindrome is please, don't google it either.

Not really coding related but it's a word which is the same doesn't matter if spelled forward or backward.
(Nov 27, 2015 10:02 AM)Balding Wrote:  Explain to me what a palindrome is please, don't google it either.

Do geese see god?
[Image: 4m3Ce3M.gif]
GRAPHICS | SIGNATURES | THREADS | AVATARS | LOGOS | AND MORE!
Regarding coding this bot for this thread below
https://hackforums.net/showthread.php?tid=5070250

Whats the main problem I would encounter?
Image recognition?
Gameguard/hackshield?


Thank you.
(Nov 27, 2015 10:04 AM)Remix Wrote:  Not really coding related but it's a word which is the same doesn't matter if spelled forward or backward.

How is it not coding related? If anything it has a lot to do with coding.
(Nov 27, 2015 10:40 AM)Balding Wrote:  How is it not coding related?

It's more common language related
(Nov 27, 2015 10:40 AM)Remix Wrote:  It's more common language related

Yeah, I know, but it still applies to coding in a lot of ways.
(Nov 27, 2015 10:39 AM)DuguWudi Wrote:  Regarding coding this bot for this thread below
https://hackforums.net/showthread.php?tid=5070250

Whats the main problem I would encounter?
Image recognition?
Gameguard/hackshield?


Thank you.

I don't know the development for that game but I wouldn't write such bots in autoit.
I don't know either many about autoit itself.
Should this little fella { be on the same line or be given a new line. What's the "proper" way or does it come down to preferences?

Example:
Code
if (you.hasAnswer()) {
    you.postAnswer();
} else {
    you.doSomething();
}

or
Code
if (you.hasAnswer())
{
    you.postAnswer();
}
else
{
    you.doSomething();
}
(Nov 27, 2015 10:46 AM)Aurora Wrote:  Should this little fella { be on the same line or be given a new line. What's the "proper" way or does it come down to preferences?

Example:
Code
if (you.hasAnswer()) {
    you.postAnswer();
} else {
    you.doSomething();
}

or
Code
if (you.hasAnswer())
{
    you.postAnswer();
}
else
{
    you.doSomething();
}

It doesn't really matter, its more of a preference. But its similar to the white space concept; you don't have to do it, but its just how everyone else does it and it makes your code a lot cleaner. 🤝
previously known as Sin/Sin+

[Image: De7wpim.gif]
(Nov 27, 2015 10:46 AM)Aurora Wrote:  Should this little fella { be on the same line or be given a new line. What's the "proper" way or does it come down to preferences?

Example:
Code
if (you.hasAnswer()) {
    you.postAnswer();
} else {
    you.doSomething();
}

or
Code
if (you.hasAnswer())
{
    you.postAnswer();
}
else
{
    you.doSomething();
}

It's all preference. The placement doesn't matter in this case.
(Nov 27, 2015 10:46 AM)Aurora Wrote:  Should this little fella { be on the same line or be given a new line. What's the "proper" way or does it come down to preferences?

Example:
Code
if (you.hasAnswer()) {
    you.postAnswer();
} else {
    you.doSomething();
}

or
Code
if (you.hasAnswer())
{
    you.postAnswer();
}
else
{
    you.doSomething();
}

It depends on preference and sometimes on the language.
While it's actually the standard to write the { in the same line in Java you are kinda forced to write it in the next line in C# (Visual Studio does it automatically).
But in the end it's personal preference.
(Nov 27, 2015 10:49 AM)Remix Wrote:  It depends on preference and sometimes on the language.
While it's actually the standard to write the { in the same line in Java you are kinda forced to write it in the next line in C# (Visual Studio does it automatically).
But in the end it's personal preference.

Tools -> Options -> Text Editor -> C# -> Formatting -> New Line, you can choose which line to put it on.
Remix does know what he's talking about. Hopefully I can get into Royalty soon also!
I only use https://ricochet.im - ricochet:lmi3tdtlsnziqwdk

Jabber: [email protected]


Possibly Related Threads...
Thread / Author Replies Views Last Post
by ForceJewAug 19, 2017 01:30 AM 29 1,308 Aug 19, 2017 01:30 AM
Last Post: newQuery
by SIM-2015410May 6, 2017 06:45 AM 211 5,809 May 6, 2017 06:45 AM
Last Post: Observer
[Help] by RemixJan 22, 2016 03:58 PM 14 561 Jan 22, 2016 03:58 PM
Last Post: Remix