359 Results
Looks interesting. Whens future releases?
SammySung Addons Reply
[QUOTE=Shadaez;44387776]no, the code depends a lot on how the html is formatted[/QUOTE] Then how do I work out how to write it?
SammySung Programming Reply
[QUOTE=Shadaez;44387666]you can use the :checked selector to grab checked items. if the length is more than 0, then one or more is selected, if all the separate question's have a different class or something you can do $(class/selector of some kind):checked).length >= 1 on a...
SammySung Programming Reply
[QUOTE=Shadaez;44387128][url]http://jsfiddle.net/j6bER/[/url] uses jquery, lmk if that's a problem[/QUOTE] Can you elaborate a little please?
SammySung Programming Reply
I have a bunch of questions on a page generated by PHP and they're all checkboxes, maybe 4 checkboxes/answers to a question. How can I check using javascript that at least 1 checkbox has been ticked for each question? Each question has a unique ID.
SammySung Programming Reply
JS How can I check that at least one checkbox is ticked in each group of checkboxes on a page?
SammySung Programming Reply
[QUOTE=gokiyono;43879990]CONCAT is there [code] INSERT INTO tableName (columnName) VALUES ( CONCAT('This is a string ', HEX(9), -- This is an integer ' And here is another string.' ) ); -- Returns: This is a string...
SammySung Programming Reply
[QUOTE=gokiyono;43874562]I am not sure, but i think it treats UNHEX( as part of the string, and $HexName as not part of the string (am too tired to remember the name)[/QUOTE] Yeah it does, any way around it?
SammySung Programming Reply
How do I use unhex in a mysql string? For example [code] "insert into logevents (logid,event,operatorifapp, logdate) values (DEFAULT, 'New participant registered - UNHEX('$HexName') - ID: UNHEX('$HexOrgNo')', NULL, CURDATE());";[/code] But it doesn't work. [url]http:/...
SammySung Programming Reply
[QUOTE=KmartSqrl;43761816]This is actually a really bad way to make sure that all required fields are present, you should do something like this instead, it's a lot more flexible down the road, easier to update and easier to see what's happening at a glance. [code] <?php ...
SammySung Programming Reply
[QUOTE=Coment;43758878]how is it set? You make a new row each time they answer, you sum all the 2 on the correct field, you only store it once, you store all the times on another column...?[/QUOTE] If incorrect, it get set to 1.
SammySung Programming Reply
[QUOTE=gokiyono;43758441][code] foreach($_POST as $key => $value){ if($key == 'submit'): continue; endif; [/code] You can check weather or not it is the submit button[/QUOTE] I ended up just minusing one from the end value of i. Further question ...
SammySung Programming Reply
[QUOTE=Lizart;43721961][code] $i=0; foreach($_POST as $value){ if(!empty($value)){ $i++; } } if($i===25){ echo "all forms are valid"; } [/code] this should work but i havent tested it.[/QUOTE] It works for the most part but it's including t...
SammySung Programming Reply
[QUOTE=01271;43721473]Pseudo-php: I =0 Foreach post as data If !empty data I++ If I === 25 Everything went well.[/QUOTE] You can write pseudo code, well done.
SammySung Programming Reply
Can you do a loop with isset in php? I want a loop to check all form elements are set, all have numbered ids between 1-25.
SammySung Programming Reply
Would any have any idea how I'd go about creating and then storing forms in a mysql database? Like, you'd have a page where you'd 'generate' a set of questions for a form, then store those in a database, then retrieve those questions and answers to generate the form?
SammySung Programming Reply
After compile completion, getting this: [quote]VRAD: physics [variable] 6359161/4194304 (151.6%) VERY FULL![/quote] What exactly is physics in this context?
SammySung Level Design Reply
How do I go about making something like this? The whole fade in/fadeout and stops the stuff on the other side from rendering? [img]http://puu.sh/5J3Km.gif[/img]
SammySung Level Design Reply
Hey, I need help writing a pattern/expression for javascript validation. I need the input for phone on a form to be in this format: (0X)XXXXXXXX (with the brackets).
SammySung Programming Reply
-snip-
SammySung Programming Reply
[QUOTE=Shadow801;42720870]May I ask why exactly you are using XML to do this[/QUOTE] Uni assignment, wasn't my choice.
SammySung Programming Reply
[QUOTE=Moofy;42720425]Can't you just use CTRL+F in your editor and use the next and prev buttons to check if there is multiple encounters of the specified word/name? - I don't know if that's what you do with XML but seems like a global way of finding stuff[/QUOTE] I mean...
SammySung Programming Reply
Hey how can I search through an XML file for something specific? My XML file has "Customers" which have username and password elements. I need to check if a user exists when registering to ensure there are no duplicates. PHP
SammySung Programming Reply
[QUOTE=SammySung;42709213]Can anyone point me in the right direction? I need to create a user registration/login system using XML to store the data. Single file, not one file per user.[/QUOTE]
SammySung Programming Reply
[QUOTE=CBastard;42709540]If I was forced not to use a database I would use JSON before using XML.[/QUOTE] Well that's not what my uni degree wants me to do.
SammySung Programming Reply
Can anyone point me in the right direction? I need to create a user registration/login system using XML to store the data. Single file, not one file per user.
SammySung Programming Reply
[QUOTE=ZeekyHBomb;42639223][code]Member entry; for(Member member : someStuff) { if(member.someField == value) { entry = member; break; } } if(entry == null) { //not found }[/code] You could also overwrite the equals-method for member, construct a Member ...
SammySung Programming Reply
I've made like a register type thing in java using an Array list [code]ArrayList<Member> someStuff = new ArrayList<Member>();[/code] Member class/object whatever you call it has phone number and password. How can I search through the Array list to create a kind of log...
SammySung Programming Reply
[QUOTE=eternalflamez;42333518]When I copy this code and run it on my local server, and fill in 11 for customernumber, 1234 for password, it does echo the 11 for customernumber on the request.php. On another note, if customernumber is needed for the query, you should add it ...
SammySung Programming Reply
Okay, been stuck on this all day, need some help! I'm trying to pass the customer number "conumber" from one page to another and use it in a sql statement on the 2nd, but I can't get it to work. User inputs their number & password here, then gets forwarded to request.php. The ...
SammySung Programming Reply
[QUOTE=mobrockers;42333373]Not to be rude but I think you might want to look in this thread: [url]http://facepunch.com/showthread.php?t=1250244&page=41[/url][/QUOTE] I didn't make a thread?
SammySung Programming Reply
-snip-
SammySung Programming Reply
[QUOTE=eternalflamez;42323473]It's because the line of [php]$queryResult = @mysqli_query($DBConnect, $IDString);[/php] $queryResult here, is not a string containing the customer number. Instead, it's a mysqli_result object. (Say, an organised array that's similiar to a m...
SammySung Programming Reply
[QUOTE=SammySung;42313942][code] $SQLstring = "insert into users (customernumber,name,phone,email,pw) values (DEFAULT, '".$_GET['name']."','".$_GET['phone']."','".$_GET['email']."','".$_GET['password2']."');"; $queryResult = @mysqli_query($DBConnect, $SQLstring) Or die...
SammySung Programming Reply
[code] $SQLstring = "insert into users (customernumber,name,phone,email,pw) values (DEFAULT, '".$_GET['name']."','".$_GET['phone']."','".$_GET['email']."','".$_GET['password2']."');"; $queryResult = @mysqli_query($DBConnect, $SQLstring) Or die ("<p>Unable to insert dat...
SammySung Programming Reply
[QUOTE=WTF Nuke;42071917]Formatting buddy, that will clear the issue right up. If that doesn't make sense, you don't have a closing paranthese and you don't have an opening paranthese[/QUOTE] Cheers bud! Making more sense now :)
SammySung Programming Reply
Learning Java, can anyone tell me why this won't work? [code]public class ArgsExample3 { public static void main(String[] args) { String from; for (int i = 0; i < args.length; i++) { if (args[i].startsWith("From:")) { from = args[i].substring(5); System.out.println("M...
SammySung Programming Reply
[QUOTE=code_gs;41248639]Yup, new system because of SteamPipe. SourceSDK program is obsolete now.[/QUOTE] Fair enough. Cheers!
SammySung Level Design Reply
Source SDK. Just tried launching with the bat, works fine? It all loads. Should I be using the bat file to launch? I didn't even know they existed.
SammySung Level Design Reply
CSS content not loading into hammer.
SammySung Level Design Thread
Using Source Engine MP as the engine, CSS as the game, yet no CSS content (materials, models etc) are being loaded, therefore when I open my map that uses a lot of CSS content, it's all error and pink and black textures. Seems this happened after it went to steampipe. I've adj...
SammySung Level Design Reply
[QUOTE=SammySung;41092737]I'm using Source Engine MP for CSS but the CSS content is not being loaded?[/QUOTE]
SammySung Level Design Reply
[QUOTE=pac0master;41194974]How?[/QUOTE] Right click the game in Steam, click properties, then press the Betas tab, then steam pipe should be in there. I could be wrong, I don't know if Portal 2 has switched to Steam pipe as I don't own it.
SammySung Level Design Reply
[QUOTE=pac0master;41192430]hmm did i missed something, I added the .FGD of many games to my portal 2 sdk and I can not see any new textures. or anything...[/QUOTE] You might need to opt into steam pipe for Portal.
SammySung Level Design Reply
[QUOTE=SammySung;41147684]When using scripted sequences, how do I make it one fluid motion? Just want an NPC to walk from point A->B->C etc. It keeps stopping for a split second at each scripted sequence.[/QUOTE]
SammySung Level Design Reply
Don't use Garry's Mod as the game, use CSS or Half Life 2 or something.
SammySung Level Design Reply
When using scripted sequences, how do I make it one fluid motion? Just want an NPC to walk from point A->B->C etc. It keeps stopping for a split second at each scripted sequence.
SammySung Level Design Reply
I'm using Source Engine MP for CSS but the CSS content is not being loaded?
SammySung Level Design Reply
[QUOTE=Drakehawke;41092567]I'm honestly not sure what you're doing wrong. The most I can tell you is that gmsv_mysqloo_win32.dll is in the wrong place or not named correctly. What OS are you using? Is this a dedicated server, listen server or client?[/QUOTE] Client. I've...
SammySung Addons Reply
[QUOTE=isnipeu;41090846]Are you still getting "Couldn't include file 'includes/modules/mysqloo.lua' (File not found)"?[/QUOTE] Yes.
SammySung Addons Reply
[QUOTE=mumuk;41057855]Well, still doesn't work for me, I am certainly doing something wrong .. -I put the libmysql where is the files srcds_ -I put the file "gmsv_mysqloo_win32.dll" in garrysmod/lua/bin (I had to create the folder bin because it did not exist) - I w...
SammySung Addons Reply
[QUOTE=Deagle195;41077545]Boxes I made aren't textured in 3D textured mode, why?[/QUOTE] Take a screenshot.
SammySung Level Design Reply
[QUOTE=wazanator;41069561]You're going to have to extract the TF2 content from the vpk's and put them into the CSS folder Extract it, decompile it, recompile it under a new name with the new texture.[/QUOTE] I tried with GCFScape but they are all corrupted?
SammySung Level Design Reply
[QUOTE=Sword and Paint;41067187]Thanks but that did not answer my questions. Is there no way of fixing the ep2\ep1 content pathing issues easily?[/QUOTE] That is the way to fix it. You don't have to edit any of your paths, just follow that tutorial and all will be well.
SammySung Level Design Reply
How do I get TF2 models into CSS now that they've changed the folder structure/adding custom content?
SammySung Level Design Reply
Can anyone tell me why this is crashing my program? C [code]int load_hit_list(dyn_array *hit_list) { int i, result = 0; FILE *input; input = fopen("hits.txt", "r"); if (input == NULL) {printf("Loading Failed\n"); return 0;} printf("test1\n"); fscanf(inpu...
SammySung Programming Reply
You're about 3 years too late. If it's still the same shit going round, download peerblock and wireshark. Capture all IP's during an attack, remove all non offending IP's (not hard to decipher if you know what to look for). Export the list into a .txt file, open it in Note...
SammySung Garry's Mod General Reply
-snip-
SammySung Programming Reply
[QUOTE=Protocol7;40440576]You have no where clause. You should be able to do something like "SELECT foo FROM bar WHERE foo > 2"[/QUOTE] I needed to use HAVING, not WHERE
SammySung Programming Reply
Mysql! How can I make it only show entries where Total Sales is between 2 and 10? Query: [quote]SELECT P.PRODID, P.PRODNAME, SUM(O.QTYSOLD) AS "TOTAL SALES" FROM PRODUCT P INNER JOIN ORDERLINE O ON P.PRODID = O.PRODID GROUP BY P.PRODID, P.PRODNAME ORDER BY "TOTAL ...
SammySung Programming Reply
Mysql How do I do a CHECK constraint that ensures the value inputed is between 0 and 5000?
SammySung Programming Reply
[QUOTE=mobrockers2;40128972][cpp] SELECT DISTINCT(C.CITYNAME), W.CAPACITY FROM CITY C INNER JOIN WAREHOUSE W ON C.CITYCODE = W.CITYCODE WHERE W.CAPACITY >=10000 [/cpp][/QUOTE] I've tried that before, just tried it again to make sure it doesn't ...
SammySung Programming Reply
So I have query that looks like this [code] SELECT C.CITYNAME, W.CAPACITY FROM CITY C INNER JOIN WAREHOUSE W ON C.CITYCODE = W.CITYCODE WHERE W.CAPACITY >=10000[/code] Which presents this: [img]http://puu.sh/2spff[/img] How can I make it add up all the cities po...
SammySung Programming Reply
[QUOTE=eternalflamez;40128497]Does this have to be pure sql?[/QUOTE] It's alright, I figured it out. And I'm not really sure, it's part of my uni course.
SammySung Programming Reply
How do I do a MySQL statement that selects rows ending in 'st' or 'rd'?
SammySung Programming Reply
How do I make my map NPC friendly?
SammySung Level Design Reply
[QUOTE=SammySung;39909054]When I compile I get these errors: (Only a snippet of the whole lot) Error! Unable to load model "models/props/de_inferno/light_streetlight.mdl" Error! Unable to load model "models/props/de_tides/tides_woodenfences_a.mdl" Error! Unable to load mo...
SammySung Level Design Reply
Would anyone like to make me a 7 level elevator prefab?
SammySung Level Design Reply
When I compile I get these errors: (Only a snippet of the whole lot) [quote]Error! Unable to load model "models/props/de_inferno/light_streetlight.mdl" Error! Unable to load model "models/props/de_tides/tides_woodenfences_a.mdl" Error! Unable to load model "models/props/d...
SammySung Level Design Reply
[QUOTE=GoldPlatinum;39886109]Make all displacements one sided[/QUOTE] Cheers, worked fine.
SammySung Level Design Reply
How can I get rid of these lines in my grass after displacement? [url]http://puu.sh/2goBx[/url]
SammySung Level Design Reply
Why do my doors do this? [url]http://puu.sh/2fJ8n[/url]
SammySung Level Design Reply
[QUOTE=Firegod522;39672652]I'm fairly certain its a windows 8 bug.[/QUOTE] It was fine one day, not fine the next. And can anyone give any help besides telling me where my manifest window should be? Second or third time now.
SammySung Level Design Reply
Can anyone help me with this stupid grid/model problem? [img]http://puu.sh/25R8B[/img] Can't zoom out very far, can't select anything and models are blown up massively. [editline]21st February 2013[/editline] [QUOTE=AmatureManga;39639482]could somebody tell me step...
SammySung Level Design Reply
[QUOTE=SammySung;39491589]My hammer grid is all stuffed up and models won't load in the 3D view. Also can't zoom out very far in any 2D view. [url]http://puu.sh/1YeC5[/url] Any help?[/QUOTE] Desperately looking for a solution.
SammySung Level Design Reply
[QUOTE=soldierrob;39495751][image] i just opened hammer and for some reason all my props are gone it almost looks like they are rescaled 150x bigger someone knows an fix ???[/QUOTE] I'm getting the same problem. [QUOTE=Mozartkugeln;39495890]Did they disappear from th...
SammySung Level Design Reply
[QUOTE=Mozartkugeln;39492814]I doubt that'll help. It's probably a cache problem with CSS (which is what I think that prop is from) — we had the same problem on the Sassilization servers a few months ago. [T]http://i.imgur.com/xHfwpSj.jpg[/T] Miscellaneous tip: drag...
SammySung Level Design Reply
[QUOTE=R@Rdeathmatch;39492459]Thanks, it worked. Q: Any solution for the prop problem ??[/QUOTE] Go to the props properties and change the "Collisions" to bounding box
SammySung Level Design Reply
[QUOTE=Ereunity;39491988]First port of call is to reset your game configurations.[/QUOTE] Just gave that a go then, no change. Was working fine yesterday. e; Seems to work fine with any other config (Using CS:S). Going to try verifying it's game cache, might fix it up. ...
SammySung Level Design Reply
My hammer grid is all stuffed up and models won't load in the 3D view. Also can't zoom out very far in any 2D view. [url]http://puu.sh/1YeC5[/url] Any help?
SammySung Level Design Reply
[QUOTE=deemoney07;39478308]No... What should i rename it to?[/QUOTE] Anything, just change its name then start Garry's Mod. It will create a 'fresh' installation.
SammySung Help & Support Reply
I would say you would have to edit the code so it doesn't print to chat.
SammySung Help & Support Reply
Have you tried renaming your garrysmod folder so it creates a fresh install of Garry's Mod?
SammySung Help & Support Reply
There's a setting within options where you can set whether custom content downloads, maybe you changed it once and forgot? [img]http://puu.sh/1WMJD[/img]
SammySung Help & Support Reply
Well you clearly haven't moved across the right files in the right directories.
SammySung Help & Support Reply
[QUOTE=Mozartkugeln;39424364]Have the door start out open so it gets compiled facing outward (or inward if you want), and then fire a [I]logic_auto[/I] to close it [I]OnMapSpawn[/I].[/QUOTE] Oooo, good suggestion! I'll give it a whirl!
SammySung Level Design Reply
[QUOTE=SammySung;39408852]Why do my doors do this? [img]http://puu.sh/1UI7T[/img][/QUOTE] Anyone have any further suggestions?
SammySung Level Design Reply
Maybe instead of garry, make the folder name garrysmod
SammySung Help & Support Reply
You need to bring over the materials as well.
SammySung Help & Support Reply
[QUOTE=vinylrain;39421726]I moved the folders I need to a different location. However, it still won't work.[/QUOTE] What have you set your download url to?
SammySung Help & Support Reply
[QUOTE=NotExactly;39411944]That building with the two towers connected by what look like walkways, in the 3D skybox, looks a bit off to me. It's the kind of design you'd find on a much, much bigger building, it just looks a bit flimsy at the moment.[/QUOTE] Hm true, I've j...
SammySung Level Design Reply
[QUOTE=Stinger21;39411611]lod all of the things. if at any place in your map everything is being drawn using hint/skip to optimize is sort of pointless.[/QUOTE] Shouldn't using hint/skip effectively make parts [i]not[/i] draw that you can't see any way?
SammySung Level Design Reply
Roleplay map I have been working on, almost finished. [img]http://puu.sh/1UPcU[/img] [img]http://puu.sh/1UPdf[/img] First time using 3D skybox and a bunch of other things.
SammySung Level Design Reply
[QUOTE=epicricer;39410833]PubGamer PERP? Is that you Michael?[/QUOTE] Sure is babe.
SammySung Garry's Mod General Reply
[QUOTE=TheDivinity;39407691]Has anyone actually had good experience reporting "internet crimes"? From what I've heard, most organizations, groups, etc. won't care, unless it causes a substantial amount of money in damages.[/QUOTE] I was a victim of a 15gb/s DDOS in Aust...
SammySung Garry's Mod General Reply
[QUOTE=Mozartkugeln;39409214]Try manually adding the [I]lightingorigin[/I] key to the door, and then set its value to the targetname of an [I]info_target[/I] which you'll put outside the door (the VDC recommends not using [I]info_lighting[/I] for dynamic props).[/QUOTE] No...
SammySung Level Design Reply
[QUOTE=Zanarias;39408961]Try placing an info_lighting outside the doors and setting that as the door's lighting origin.[/QUOTE] I can't see anywhere to set lighting origins for prop_door_rotating's.
SammySung Level Design Reply
Why do my doors do this? [img]http://puu.sh/1UI7T[/img]
SammySung Level Design Reply
[img]http://puu.sh/1UI3b[/img] Here's an alternate angle that shows roof heights. I've messed around with lods, not sure how good they are to use though?
SammySung Level Design Reply
This thread is useless, your questions are never answered.
SammySung Level Design Reply