-
Posts
2,210 -
Joined
-
Last visited
-
Days Won
47
Content Type
Profiles
Forums
Events
Everything posted by sniko
-
You need to edit the link; I'm unsure what the actual case name is, so; - Open the file. - Find the case section of the file - Find the case name of the function you want to link to - Edit the link (Normally, McCodes uses this <a href='file.php?action=casename'>Something</a>) Personally, I don't like the default case returning that error, it would be so much more user friendly if it returned links to the functions...
-
Hi to All! A Text Based Mafia game - Trigger Happy Mafia!
sniko replied to KashBFD's topic in Game Projects
Alternatively, store the production setting in the database, and do something along the following; $get = $db->query("SELECT <primary_key> FROM <table> WHERE <production_column>='Yes'"); while($r = $db->fetch_row($get)) { $db->query("UPDATE <table> SET <bullet_column>=<bullet_column>+<value> WHERE <primary_key>={$r['<primary_key>']}"); } unset($r); mysql_free_result($get); -
If you have enough knowledge (I'm not doubting anyone), you could probably 'convert' it. By me using the word 'convert', I'm not saying A=B=A (Reword a few things, and add a few lines of code here and there) but, re-create it.
-
@Spud; What's w4cking-c99? Good to see you've released a patch! Great stuff! I'm with Alain, a patch is welcome in my eyes!
-
I quite like the template, and I think it's worth the money!
-
Updated original post!
-
Okay, so you have the following columns in your table log_id attacker attacked result time stole attacklog annon outcome ----------- Total: 9 And this is your query INSERT INTO attacklogs VALUES('',19,1,'won',unix_timestamp(),214747368,' g') ; ----------- Total: 7 If you're wanting to insert data into specific columns, use this syntax INSERT INTO <table> (<columns*>) VALUES (<data*>) * Separate with a comma ...So, match what you're wanting to insert with the table columns. I hope you understand.
-
The structure of the attacklogs table as the column count is wrong
-
@H4x0r666 I think what SRB was trying to say was do a few banners for free, no clients needed, and show them in his portfolio, to show his skill.
-
- Experiences Not every soldier experiences the same thing - Everything is linked into everything - Different types of missions A main story and side quests, which are unlocked at different parts of the main story, or things you experience - Available to customize Customize your weaponry. For example, a M1A4 Carbine can have a silencer (+x[/blue] surprise) or a red dot sight (+x[/blue] accuracy) - Infantry Regiments Each regiment have different things they can do. The Parachute Regiment can travel faster and the Rifles Regiment can hold more ammunition (I don't know :P)
-
[mccode v2] UPGRADED upload pics add pics everywhere [RECODED]
sniko replied to Uridium's topic in Free Modifications
@Boots. Have you even looked at line 134...Does it even look correct? (Sorry if the forum software mucked up the code...) But, this might fix it -
Simple edit, that will automatically log the user in upon sign up, which will make user experience better, as they don't have to enter their details twice to play for the first time. Open up register.php, and at the top, below line 1, add; session_start(); Now, find the following snippet; (Code Mucked Up?) if($_POST['ref']) { require "global_func.php"; $db->query("UPDATE users SET crystals=crystals+2 WHERE userid={$_POST['ref']}"); event_add($_POST['ref'],"For refering $username to the game, you have earnt 2 valuable crystals!",$c); $db->query("INSERT INTO referals VALUES('', {$_POST['ref']}, $i, unix_timestamp(),'{$r['lastip']}','$IP')"); } and directly below it add; (Code Mucked Up?) $_SESSION['userid'] = $i; $_SESSION['loggedin']=1; $IP = $db->escape($_SERVER['REMOTE_ADDR']); $db->query("UPDATE users SET lastip_login='$IP',last_login=unix_timestamp() WHERE userid={$i}"); if($set['validate_period'] == "login" && $set['validate_on']) { $db->query("UPDATE users SET verified=0 WHERE userid={$i}"); } header('Location: index.php'); exit; If you get the following error; Cannot modify header information $_SESSION['userid'] = $i; $_SESSION['loggedin']=1; $IP = $db->escape($_SERVER['REMOTE_ADDR']); $db->query("UPDATE users SET lastip_login='$IP',last_login=unix_timestamp() WHERE userid={$i}"); if($set['validate_period'] == "login" && $set['validate_on']) { $db->query("UPDATE users SET verified=0 WHERE userid={$i}"); } ?> <meta http-equiv="refresh" content="0; url=index.php"> <?php exit; And that's it. -sniko
-
I am posting this for WebSpaceLand. I am not affiliated with them. Any queries, please contact them. Looking for cheap & affordable shared website hosting? Look no further The servers are based in Dallas, Texas. The service(Web Space Land) has just been formed but it is running off fast and reliable servers! Don't hesitate to check out: http://www.webspaceland.co.uk Packages: Basic - Web Space: 5 GB - Bandwidth: 5 GB - MySQL Databases: 5 - FTP Accounts: 5 - Email Accounts: 5 - Subdomains: 5 - Addon Domains: 0 - Control Panel: cPanel Only £2.00 Per Month. ------------------------ Advanced - Web Space: 10 GB - Bandwidth: 10 GB - MySQL Databases: 10 - FTP Accounts: 10 - Email Accounts: 10 - Subdomains: 10 - Addon Domains: 2 - Control Panel: cPanel Only £4.00 Per Month. ------------------------ Business - Web Space: 20 GB - Bandwidth: 20 GB - MySQL Databases: 20 - FTP Accounts: 10 - Email Accounts: 5 - Subdomains: 20 - Addon Domains: 4 - Control Panel: cPanel Only £6.00 Per Month. ------------------------ Professional - Web Space: Unmetered - Bandwidth: Unmetered - MySQL Databases: Unmetered - FTP Accounts: Unmetered - Email Accounts: Unmetered - Subdomains: Unmetered - Addon Domains: 6 - Control Panel: cPanel Only £8.00 Per Month.
-
@Bluegman991 - Ah, my bad. My memory proved me wrong, as I remember having to go into Operations and set it back to 0 manually
-
Best of Luck! Has the full story line been created/written?
-
Replace line 37 with; <a href='http://creditcard.php' target='_blank'>- Click Here to Start Using your Credit Card -</a></th></tr>";
-
Do you mean something like this? Click Me
-
Change PM to ON - Scroll to Private Messaging
-
My brother would like to discuss more details. Mind adding him on Skype? iamtomdenley Thanks
-
You didn't delete anything from the table [which OP did], which would make the AUTO INCREMENT not 0
-
How'd you come to the conclusion of; ?
-
Future patches are in the making... "+ Multiple items, multiple combination, doesn't work" - What do you mean /:
-
I signed up...2 seconds playing, I get jailed for 99,999 days. Brilliant.
-
Hi to All! A Text Based Mafia game - Trigger Happy Mafia!
sniko replied to KashBFD's topic in Game Projects
Store the time in a INT(11) and just store the timestamp IE. "1328819347" -
Hi to All! A Text Based Mafia game - Trigger Happy Mafia!
sniko replied to KashBFD's topic in Game Projects
1. Use code tags, encase code in [*php][*/php] ~(remove *) 2. "$crap" In my view, should be initiated first as 0 (Referring to $crap != 0) and then deleted from memory once it's played its role in the program (unset()) 3. Try having the following IF statement somewhere... <?php $time = time(); $get = mysql_query("SELECT `bullets` FROM `site_stats` WHERE `bullets`< $time"); if(mysql_num_rows($get)) { //Continue with code, add bullets } Other than step 3 I can't see why it needs a user request to initiate the update. Hmmm, on the other hand, I see you have something like that. (Psst. Select what you want from the table, tend not to use the wildcard *) I guess the only question to ask now, is, are the records updating?