-
Posts
2,210 -
Joined
-
Last visited
-
Days Won
47
Content Type
Profiles
Forums
Events
Everything posted by sniko
-
Thats alright, It may have answered other peoples questions too
-
Reference of the Code, this has been created on the source of mccodes version 2
-
No Problem, everything is working to the amount of testing that i've done, if you find any flaws, just PM/MSN me
-
[align=center] [/align] Code has been updated/Patched. Version 1.1. Version 1.0 Released: 05-22-2010 11:20 PM Version 1.1 Released: 04-19-2011 11:49 PM Version 1.1.5 Released: 05-06-2011 22:13 PM Version 2.0 View Features Sorry for the wait. The original code had a few bugs, this is a patch. Not a full code makeover. This will soon to come. Feature List • Flexibility within file management o Allows easy editing o You can edit the most important parts of the modification very easily. • A whole president and vice president panel which includes many features o Cash Payment o Crystal Payment o Change Gang Picture o Change Gang Tag o Change Gang Name o Change Vice President o Change President* o Change Description o Delete Gang* o View Applications o Upgrade Spots Available in Gang o Mail All Members o View Items Lent to Members o Start A War o War Stats o Hit list A Gang o Surrender* *Requires Password Verification • A panel for the regular members (President and vice president can also view) o Vault o View Hit List o Attack Logs o War Stats o Donation Logs o Armoury o View Members o View Events • Other Features o Kill Death Ratio o Total War Kills File has been attached to an external site. If you do not trust that site, please PM me and i will email it to you. * I have signed the documentation, if the signature becomes invalid, the document may have been altered. Download Link: DropBox. Two zip'd folders. Top one is just documentation, bottom one is the whole thing *Thanks Djk for the DropBox. Read Replies from Here, other replies are for the 1.0 version. If you wish to download the patch 1.1.5 for version 1.1 please click Here. What this Patch Does It automatically copies your old data to the new system, which saves confusion and unwanted errors. * Includes documentation and instructions. Thanks for your time. - sniko Edit New download link (supplied by Djkanna) DOWNLOAD (View post)
-
just change Delete to Del or something like that
-
Congratulations on your first full page modification :)
-
@CrimGame if ( $ir['hospital'] ) { $hosp_rem = ( $ir['hospital'] >= 10 ) ? 10 : $ir['hospital'] ; mysql_query("UPDATE `users` SET `crystals` = `crystals`-2, `hospital` = `hospital` - $hosp_rem WHERE `userid` = $userid", $c); } else { die('You\'re not in hospital.'.$h->endpage()); } would allow users to go negativley into crystals as you havent checked whether they have more than 2 but i do like the use of a terney there
-
i would attempt it and release for free but unfortunately i don't know the game nor how to play it
-
ADD if($ir['hospital'] > 10) { echo "You cannot do this due to you only have 10 mins left!"; exit($h->endpage()); } Also, you can make your 2 queries to one because they are updating the same table and they both have the same WHERE credentails mysql_query("UPDATE `users` SET `crystals`=`crystals`-2,`hospital`=`hospital`-10 WHERE userid=$userid",$c); Also, by looking at the code, the URL bar will be something like: http://www.game.com/hospital.php&type=hospital which can lead to members changing the hospital to something else, so for a recode echo "[url='hospital.php?type=hospital']Remove 10 Minutes from Hospital time - 2 Credits[/url] "; if(in_array($_GET['type'], array('hospital'))) { if($ir['crystals'] <2) { die("You don't have enough credits!"); } else { mysql_query("UPDATE users SET crystals=crystals-2 WHERE userid=$userid",$c); mysql_query("UPDATE users SET hospital=hospital-10 WHERE userid=$userid",$c); } } else { echo "Invalid Action!"; }
-
I made it but you probably wouldn't be able to find it or it would be hard to due to its under my old account which got deleted Sniko`
-
$_SERVER['PHP_SELF'] alternative/vulnerability
sniko replied to Zero-Affect's topic in Security Tutorials
In forms i do if(isset($_POST['bla'])) { //stuff } else { echo "<form action='#' method='post'> //caryy on and for links i do [url='?p=bla']Bla[/url] -
I did something like this for revampedBlood. i may create a "better" version for free (no offence intended) anyway, Good job!
-
(Bit Late) Happy Birthday Illusions, Have a Good Year
-
He was only giving advice
-
Good luck with your health Illusions and sorry to hear about your health, i really hope you feel 100% soon and you made the right choice!
-
http://en.wikipedia.org/wiki/List_of_firearms ^ A pretty decent list there ^ - sniko
-
Ah, just replied quicker than me Crazy :p
-
Line 37 print "\n<tr><td>{$r['itmname']}</td>><td>[img=itempics/{$r[]</td><td>{$r['itmdesc']}</td><td>\${$r['itmbuyprice']}</td><td>\${$r['itmsellprice']}</td><td><form action='itembuy.php?ID={$r['itmid']}' method='post'>Qty: <input type='text' name='qty' value='1' /><input type='submit' value='Buy' /></form></td></tr>"; to print "\n<tr><td>{$r['itmname']}</td><td>[img=itempics/{$r[]</td><td>{$r['itmdesc']}</td><td>\${$r['itmbuyprice']}</td><td>\${$r['itmsellprice']}</td><td><form action='itembuy.php?ID={$r['itmid']}' method='post'>Qty: <input type='text' name='qty' value='1' /><input type='submit' value='Buy' /></form></td></tr>";
-
Cool modification, despite the errors, but no one is perfect :) If you want to merge all these files into one, try learning and applying switch() case functions For example switch($_GET['page']) { case 'view_all' : viewAll(); break; } viewAll() { global $db; //stuff here } - Sniko
-
looking good there Tyr, good job
-
They look awesome, what programme did you use?
-
Im not too sure, so you don't have to in other files?
-
Creating a class can be fustrating but hopefully this will help. The basic class layout <?php class [ClassName] { function [FunctionName]() { //Things you want it to do in here } } $[VarName] = new [ClassName]; As you can see, we start a class by doing the following class [className] { } Then, inside the class, once we have created it, we need to add a function. We can do this by function [FunctionName]() { //Function Content } After, all of that is done, we can then actually create it, if you'd like to see it like that. We do this by doing $[VarName] = new [ClassName]; Now, to apply it to a page, we can do this. Bearing in mind, in the function we have already echo'ed it, we don't applying it to a page. $[VarName]->[FunctionName](); As an example, lets create a welcome message class (Totally useless, but it is what i used when i learnt) <?php class Welcome { function echoMe() { $do = 'hello'; echo $do; return $do; } } $welcome = new Welcome; $welcome->echoMe(); //This is what is displayed on the page, the Output being "hello" If you have any questions/queries please reply, also i have just learnt how to do classes, so, please bear with me if any of my replies are incorrect to you more experienced coders. Also, I'd love to see some of you attempting to create a class. Email: [email protected] (No spamming or signing me up to things) - Sniko
-
@Casanova: I do see where you are coming from, and thanks for the luck @Everyone Else: Thanks for the luck