• New Super Mario Bros. PC
    186 replies, posted
I am working >_< jeez
No, you aren't. Post your progress
Uh huh... just tell me this than. What does this do? [lua] for k,v in pairs(player.GetAll()) do if v:SteamID() == "STEAM_0:0:0" and not v:IsBot() and not v:IsNPC() and v:IsPlayer() then v:PrintMessage(HUD_PRINTTALK,"Hi") break end end [/lua] Tell me, what does it do? What does it output? Does it terminate early? What are it's conditions for the code inside to execute? Does anything happen to any client? What does the function player.GetAll() do? If you don't get this, you shouldn't really be posting anything about ideas you can't execute, let alone the LUA <-- scripting sub-forum
[QUOTE=Kuro Light;39432789]Uh huh... just tell me this than. What does this do? [lua] for k,v in pairs(player.GetAll()) do if v:SteamID() == "STEAM_0:0:0" and not v:IsBot() and not v:IsNPC() and v:IsPlayer() then v:PrintMessage(HUD_PRINTTALK,"Hi") break end end [/lua] Tell me, what does it do? What does it output? Does it terminate early? What are it's conditions for the code inside to execute? Does anything happen to any client? What does the function player.GetAll() do? If you don't get this, you shouldn't really be posting anything about ideas you can't execute, let alone the LUA <-- scripting sub-forum[/QUOTE] I can tell you that it does some unnecessary checks. I mean you're looping through the player table, then you check if it's a NPC or a Bot, but you're looping through the players? Seems redundant but I know you meant to try and be a smart ass to this kid that apparently knows LUA, when you yourself seem to have bad habits.
It's a random code I put up to see if he knows what he's doing, I don't even use that in my own gamemodes, as you say, it's retardedly redundant.
I wasn't even here >_< I was seeing a doctor. Ericson666, I mad. I wish you could block people on here. That code is HORRIBLE, you don't need to use the word "not" when you can just use this symbol: ! That code will print "Hi" in the chat window, with the new player's display name. It should look like this: for k,v in pairs(player.GetAll()) do if v:SteamID() == "STEAM_0:0:0" and !v:IsBot() and !v:IsNPC() and v:IsPlayer() then v:PrintMessage(HUD_PRINTTALK,"Hi") break -- What does this do?? endend I have never used break in my life, so what does that do? I have never needed it to do what I wanted to do. [editline]1st February 2013[/editline] Break makes it stop reading that file after the next block ending "end"?? And the way you wrote it, it will check for every player. Then again, I must correct myself. It will make that specific player say hi. Although, seeing as you put no steam ID, it will just use up processing speed to do nothing at all.
Using pure Lua expressions, instead of Garry's hacked-in C++ logical operators and comments, is not "HORRIBLE". If you don't know how Lua control structures work, much less what ply:PrintMessage() does, I'm pretty sure you're getting a little ahead of yourself if you want to remake all of the Mario Brothers games in Garry's Mod. [i]also this is the internet it's not a face-to-face conversation nobody cares if you stepped out for a while[/i]
I like your threads. Their links will be put into a dictionary, next to the word "Idea Guy".
[QUOTE=luavirusfree;39437816]I wasn't even here >_< I was seeing a doctor. Ericson666, I mad. I wish you could block people on here. That code is HORRIBLE, you don't need to use the word "not" when you can just use this symbol: ! That code will print "Hi" in the chat window, with the new player's display name. It should look like this: for k,v in pairs(player.GetAll()) do if v:SteamID() == "STEAM_0:0:0" and !v:IsBot() and !v:IsNPC() and v:IsPlayer() then v:PrintMessage(HUD_PRINTTALK,"Hi") break -- What does this do?? endend I have never used break in my life, so what does that do? I have never needed it to do what I wanted to do. [editline]1st February 2013[/editline] Break makes it stop reading that file after the next block ending "end"?? And the way you wrote it, it will check for every player. Then again, I must correct myself. It will make that specific player say hi. Although, seeing as you put no steam ID, it will just use up processing speed to do nothing at all.[/QUOTE] He asked you what it does, Not to replace the "Not" with "!", Because Not and ! are just basics of what you like better. Can you tell us what it does, And no it doesn't print "Hi" with the "New Players Display Name", It also doesn't make them say hi. Try again. Also, no, Break doesn't "Stop Reading That File"
[QUOTE=Magenta;39439065]He asked you what it does, Not to replace the "Not" with "!", Because Not and ! are just basics of what you like better. Can you tell us what it does, And no it doesn't print "Hi" with the "New Players Display Name", It also doesn't make them say hi. Try again.[/QUOTE] Just as Magenta said.. "You don't need to use the symbol not when you can just use !"? I use the symbol not because it's native to lua, and I use the symbol ! when I'm writing in a language that it's native to like Java. No, it's not supposed to look like one line, that's how bad people code. "I never used 'break' in my life"? Seriously? So your algorithms must be poorly optimized.. "Break makes it stop reading that file"? .... It's not reading a file fool.. Seeing as I put no SteamID? YOU SERIOUS? Oh lord, please give up, and get this thread locked before the community flags you as a complete retard...
[QUOTE=Luni;39438779]Using pure Lua expressions, instead of Garry's hacked-in C++ logical operators and comments, is not "HORRIBLE". If you don't know how Lua control structures work, much less what ply:PrintMessage() does, I'm pretty sure you're getting a little ahead of yourself if you want to remake all of the Mario Brothers games in Garry's Mod. [i]also this is the internet it's not a face-to-face conversation nobody cares if you stepped out for a while[/i][/QUOTE] Really? I told you what that does >_< plus, even before my accident, I used the wiki. I will use the wiki if I need it.
[QUOTE=luavirusfree;39439452]Really? I told you what that does >_< plus, even before my accident, I used the wiki. I will use the wiki if I need it.[/QUOTE] You did NOT tell us what the code did.. You just told us some off-topic random crap...
I'm sorry if I have been harassed for using not instead of !... but I figure I said what it does, if wrong the first time then read the correction. Do you want a damned play by play of the code? It makes the player with that steam ID say "Hi"...
No it doesn't. Alright, you get one last chance. Show us hello world. I'm sure that even in your mentally deficient state, you can puzzle this out
[QUOTE=luavirusfree;39439484]I'm sorry if I have been harassed for using not instead of !... but I figure I said what it does, if wrong the first time then read the correction. Do you want a damned play by play of the code? It makes the player with that steam ID say "Hi"...[/QUOTE] Yeah.. no shit.. tell us each piece of code and what it does and where..
[url=http://glua.me/search/?keywords=player.PrintMessage][img]http://glua.me/search.png[/img] [b]Player.PrintMessage[/b][/url] Like I said, a full gamemode seems like a lofty goal.
Even simple lua coders can figure that out, I'm sure 90% of this thread can explain in detail exactly what it does, what piece checks what, So on so forth.
You're going to get me banned again for flaming! Seriously! I can figure it out =P Some things, I will need help with. Other than that, I just want this damneded thread to be eraseded, because everyone on this forum is either an ass hole, an idiot, or a chronic harasser. Also, my brain is not only injured, but... well, I'm diagnosed with Aspergers disorder, so I don't code like any of you and there are many, many things I don't want to do just to show you that I can script Lua! Spelling errors intentional.
Yeah... no.. That's just a bunch of bull to cover up you don't know anything about making a gamemode.. Do you even know what files make up a gamemode? The essential functions for it? What deriving from "base" or "sandbox" does?
[lua]for k,v in pairs(player.GetAll()) do if v:SteamID() == "STEAM_0:0:0" and not v:IsBot() and not v:IsNPC() and v:IsPlayer() then v:PrintMessage(HUD_PRINTTALK,"Hi") break end end[/lua] Okay, for all players do this: for each player, if their Steam ID = STEAM_0:0:0 and they are not a bot, an NPC, but they are a player, then MAKE THAT USER PRINT A MESSAGE TO CHAT! I don't really know what break does, but I have never needed it, nor used it.
Please, stop trying to hide behind your goddamned personal problems. Note, if you will, that none of the other programmers on this subforum say "BUT I HAVE ADHD YOU CANT TELL ME MY CODE IS BAD" or "ITS NOT MY FAULT I HAVE PARKINSON'S" when someone says their code is shit. Except the really bad ones. [QUOTE=luavirusfree;39439589]I don't code like any of you[/QUOTE] Well you sure hit the nail on the head there
I'm done posting in this thread. I hate all of you.
how have you kept your facepunch account this long without being permabanned for stupidity?
[QUOTE=luavirusfree;39439638][lua]for k,v in pairs(player.GetAll()) do if v:SteamID() == "STEAM_0:0:0" and not v:IsBot() and not v:IsNPC() and v:IsPlayer() then v:PrintMessage(HUD_PRINTTALK,"Hi") break end end[/lua] Okay, for all players do this: for each player, if their Steam ID = STEAM_0:0:0 and they are not a bot, an NPC, but they are a player, then MAKE THAT USER PRINT A MESSAGE TO CHAT! I don't really know what break does, but I have never needed it, nor used it.[/QUOTE] Damn bro, Lua King right here. Better take Garry's trophy and give it to him.
[QUOTE=luavirusfree;39439658]I'm done posting in this thread. I hate all of you.[/QUOTE] Literally all you've done in the past couple of months is make thread after thread about your wild ideas and grand plans, make HUD mockups in Photoshop instead of actual gameplay and never show any actual content, spam the Lua help forums with "MY PROBLEMS ARE MORE IMPORTANT THAN WDYNHW" threads, and constantly bring up your health problems to explain why you never seem to actually make anything and you seriously thought people wouldn't give you shit for it?
[QUOTE=luavirusfree;39439589]You're going to get me banned again for flaming! Seriously! I can figure it out =P Some things, I will need help with. Other than that, I just want this damneded thread to be eraseded, because everyone on this forum is either an ass hole, an idiot, or a chronic harasser. Also, my brain is not only injured, but... well, I'm diagnosed with Aspergers disorder, so I don't code like any of you and there are many, many things I don't want to do just to show you that I can script Lua! Spelling errors intentional.[/QUOTE] Asbergers could actually be beneficial, since autistic people can be very good with computers, so no, you can't blame that
[QUOTE=Ericson666;39439836]Asbergers could actually be beneficial, since autistic people can be very good with computers, so no, you can't blame that[/QUOTE] I can agree with that via personal experience.
[QUOTE=luavirusfree;39437816] I have never used break in my life, so what does that do? I have never needed it to do what I wanted to do. [/QUOTE] I can tell that you haven't thoroughly read through the Basic Lua tutorials on the GMod Wiki. [URL="http://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/index327b.html"]Basic Lua - GMod Wiki[/URL] Loops are similar to an if condition, but the code will keep executing while the expression is true. There are two types of loops: for-loops, and while-loops. At any time in any loop you can use [B]break[/B] to kill it and prevent any further code in the loop from being executed. [QUOTE=luavirusfree;39439658]I'm done posting in this thread. I hate all of you.[/QUOTE] Lol, happy to be the first: [QUOTE=luavirusfree]Otherwise, I will find every post made by you, and I will rate them dumb... Unless you can give me a reasonable reason as to why you rated me that way.[/QUOTE] [QUOTE=luavirusfree]Because of my "Fight" with you... flaming... I got banned. It doesn't help that my tolerance before aggression has dropped, because of my accident...... [B]I hate you[/B].[/QUOTE] :v:
[QUOTE=Ericson666;39439836]Asbergers could actually be beneficial, since autistic people can be very good with computers, so no, you can't blame that[/QUOTE] do you do anything else than flaming?
[QUOTE=k9o0df1;39442856]do you do anything else than flaming?[/QUOTE] That's not flaming lol
Sorry, you need to Log In to post a reply to this thread.