-
Posts
43 -
Joined
-
Last visited
Personal Information
-
Interests
Programming
-
Website
http://www.rjd-development.com
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
rjddev's Achievements
Newbie (1/14)
0
Reputation
-
http://jsfiddle.net/SsNTd/ Images included here as attachment, couldn't find the font on google web fonts, so i've used Oswald as font for the menu head. [ATTACH=CONFIG]1169[/ATTACH][ATTACH=CONFIG]1170[/ATTACH][ATTACH=CONFIG]1171[/ATTACH]
-
Lol @ the fail.
-
MC CODE v3 NEWS RELEASE EVIDENCE !!!!!!!! GET INVOLVED
rjddev replied to jedigunz's topic in MCCode v3 Discussion
Looking forward to see the end result ;) -
Thank you for the help, I have now removed the (int) from $amount and done it like this. if(isset($_POST['deposit']) != "") { $amount = mysql_real_escape_string($_POST['damount']); $notallowed = array('$', '-', '_', '+', '=', '<', '>', ','); $amount = str_replace($notallowed, "", $amount); if(!preg_match('#^[0-9]+$#', $amount)) { $message = "Please enter a valid amount."; } else if($amount < 1) { $message = "Please enter a valid amount."; } else if($amount <= $player->money) { $message = "You have deposited " . prettynum($amount); $newbank = $amount + $player->bank; $newmoney = $player->money - $amount; $result = mysql_query("UPDATE `grpgusers` SET `bank` = '$newbank', `money` = '$newmoney' WHERE `id` = '".$player->id."'"); } } if(isset($_POST['withdraw']) != "") { $amount = mysql_real_escape_string($_POST['wamount']); $notallowed = array('$', '-', '_', '+', '=', '<', '>', ','); $amount = str_replace($notallowed, "", $amount); if(!preg_match('#^[0-9]+$#', $amount)) { $message = "Please enter a valid amount."; } else if($amount > $player->bank) { $message = "You do not have that much money in your bank"; } else if($amount < 1) { $message = "Please enter a valid amount."; } else if($amount <= $player->bank && $amount > 0) { $newbank = $player->bank - $amount; $newmoney = $player->money + $amount; $result = mysql_query("UPDATE `grpgusers` SET `bank` = '$newbank', `money` = '$newmoney' WHERE `id` = '".$player->id."'"); $message = "You have withdrawn " . prettynum($amount); } } if(isset($message)) { echo Message($message); } This seems to be secure and working correct. Thank you :)
-
I'm facing a small problem when I withdraw/deposit money. For example, I have $98,007,285,155 money in my bank or on hand, I want to deposit/withdraw it in one time, but it deposits/withdraws only $2,147,483,647 max. I have both columns on bigint(250). Is there another type I should use in the database for this so players are able to deposit/withdraw their cash in one click?
-
Starting over with a script from the bottom - what do I need to learn?
rjddev replied to dnenb's topic in Web Developement
I'm currently giving Panther Skeleton engine a try, (That Sniko made) but then in PDO instead of mysqli. It is very easy to make own modules/templates, and the code is understandable. Panther Skeleton engine can be found here. -
Just a small heads up, The layout looks nice on 100% zoom, but when you zoom out using ctrl - the right content goes to the left.
-
Decided to check it out for a bit, here are 2 screenies. [ATTACH=CONFIG]1114[/ATTACH][ATTACH=CONFIG]1115[/ATTACH]
-
Game URL: http://dev.mafiaxtreme.com Game Owner RJD Development Game is still undergoing development, but more shall be available soon.
-
And for those working withouth htaccess <?php // Example 'dirty' url: http://www.site.com/index.php?page=page&subpage=subpage&id=id // Example 'clean' url: http://www.site.com/index.php/page/subpage/id/ $page = "index.php"; if ( $url = stristr($_SERVER['REQUEST_URI'], 'index.php') ) { // $url == 'index.php/page/subpageid if( $url[strlen($url)-1] == '/') { // Check if the URL ends with a '/' $url[strlen($url)-1] = ''; } $url_segments = explode('/', $url); // $url_segments[0] == 'index.php'; if( isset($url_segments[1]) && $url_segments[1] != '' ) { // If the page in the url is entered, gets $_GET['page'] the value $_GET['page'] = $url_segments[1]; if( isset($url_segments[2]) && $url_segments[2] != ''){ //If the subpage in the url is entered, gets $_GET['subpage'] the value $_GET['subpage'] = $url_segments[2]; if( isset($url_segments[3]) && $url_segments[3] != '') { //if the subpage in the url is entered gets $_GET['subpage'] the value $_GET['subpage'] = $url_segments[3]; } } } } else { $_GET['page'] = $page; } ?>
-
[ATTACH=CONFIG]1064[/ATTACH] Select server section almost looks the same, only a few colours changed. I remember Mafia-Warfare had it like that as well, Sorry fella, everyone can change a few colours and claim it was made by them.
-
I do have Email Verification, but then a lil bit different. When a user signs up, They will be sent an email with a link to verify their email, however they could still login if the email hasn't been verified yet, they will just have limited acces, and once they verify their email they will have full acces to the game.
-
You say your team build engines/mods/websites, but didn't even bother to make your own website? Get a free website at Webs.com Doubt this guy is real.