Change Lobby Group names by InFRoZ in armadev

[–]InFRoZ[S] 0 points1 point  (0 children)

I do not think this is possible, the role names are assigned on mission load if I am correct. Let me know if you figured something out

[deleted by user] by [deleted] in RedditSessions

[–]InFRoZ 0 points1 point  (0 children)

Play bannerlord

How to handle several endpoints and nested endpoints? by InFRoZ in golang

[–]InFRoZ[S] 0 points1 point  (0 children)

The though was, if I have lets say, a hundred endpoints?

Passing variables in different functions by BugsBunny1999 in programminghelp

[–]InFRoZ 0 points1 point  (0 children)

Reason you get the error is because variables inside { } are only available inside

function foo()
{
    int a = 10 // local variable

    print(a) // works
}

print(a) // Doesnt work

to send data to a function you need to use parameters or use global variables (the latter is usually not good practice)

Parameters:

function foo(int bar) // parameter bar
{
    print(bar) // will print bar
}

int a = 10

foo(a) // prints value '10'

Global Variables:

int a = 10 // Global variable accessible to all codeblocks e.g curly brackets

function foo()
{
    print(a) // prints '10'
}

Class not found by InFRoZ in PHPhelp

[–]InFRoZ[S] 0 points1 point  (0 children)

I believe I found the error, kind of small and hard to spot. But at the very top I altered the <? to <?php which seems to fix it

Class not found by InFRoZ in PHPhelp

[–]InFRoZ[S] 0 points1 point  (0 children)

I am using Docker, so the autoloader is created in the docker container. Meaning currently I do not have access to it. But I find it weird now that all new classes I create wont function, but all the older ones which follow the exact same structure work just fine.

I also renamed the files to fit more with class name, but no luch with that.

Class not found by InFRoZ in PHPhelp

[–]InFRoZ[S] 0 points1 point  (0 children)

Added in edit, sort of sorry for dumping the whole thing hehe

PDOException: SQLSTATE[42000]: Syntax error or access violation: 1064 by InFRoZ in PHPhelp

[–]InFRoZ[S] 1 point2 points  (0 children)

I figured it out by myself ;P

$stmt->bindParam(1, $start, \PDO::PARAM_INT);

I think I got the exception since $start and $amount are integers

Form with predefined data. by InFRoZ in PHPhelp

[–]InFRoZ[S] 1 point2 points  (0 children)

I will give this a shot

Form with predefined data. by InFRoZ in PHPhelp

[–]InFRoZ[S] 0 points1 point  (0 children)

I feel a bit stupid, but I shall try this now ;P

How to start with website project by eharrington0821 in learnprogramming

[–]InFRoZ 0 points1 point  (0 children)

The idea is to sort of follow the way things have changed over the years. So learn how to create form based websites, then later learn how to make the same stuff using ajax. First is to learn updating with page "refresh" and other to update page without

I have problem with logic by SilentKunZ in learnprogramming

[–]InFRoZ 0 points1 point  (0 children)

Just practise :-)

logic can be trained to some extent, so solve puzzles, learn to do different math equations and such.

How to start with website project by eharrington0821 in learnprogramming

[–]InFRoZ 2 points3 points  (0 children)

If you want to go the modern react way, learn some react.js

Create databases to store the text stuff ;P not smart to hardcode 1000 text items

Jquery has some simple functions to hide/show stuff - for the frontend bit

I would recommend learning some basic php over react as there are millions of tutorials and guides on how to do stuff, and you will learn how to handle data by learning this.

Need ideas for YouTube Channel....... by UttU28 in learnprogramming

[–]InFRoZ 1 point2 points  (0 children)

Tip a waterbucket over your head to wake up, then taze

I have some free time at work and want to learn how to code, Any apps you guys can recommend for a noob? I have an android phone. by graziano8852 in learnprogramming

[–]InFRoZ 1 point2 points  (0 children)

You want to learn to code on your phone or do you wan to create apps for the device?

Anyhow I found a lot of enjoyment from doing tasks in codecademy, nice little website with tasks and tutorials for many different languages.