Newbie
Members-
Posts
289 -
Joined
-
Last visited
-
Days Won
3
Content Type
Profiles
Forums
Events
Everything posted by Newbie
-
[WTB] Mccodes V2 layout login/register/ingame
Newbie replied to Frosty's topic in Paid Modifications
if your looking for someone who does game layouts i would recommend peter his work is nice and worth the cash. http://makewebgames.io/member.php/65100-W3Theory-Peter -
I'm pretty sure i have seen one person on here sell a gl game could be mistaken could of just been a layout for gl engline
-
Ok after logging in it does look like the GL engine could be wrong theres lots of scripts out there like this it does have some things that gl doesnt like change status to "online" , "busy" , "away" Burglary Drug Factory i also noticed that instead of page.php it uses this http://test.leakpatrol.com/home.php?pageid=673 i played about with it for couple mins only found 1 error in the time Warning: Division by zero in /home/outlaw/public_html/players_online.php on line 66
-
would this work instead of using it in users table? CREATE TABLE `bodygaurds` ( `id` int(11) NOT NULL default '0', `gaurds` decimal(11,4) NOT NULL default '0', `guardlevels` decimal(11,4) NOT NULL default '0', `guardsattack` decimal(11,4) NOT NULL default '0', `guardsdefence` decimal(11,4) NOT NULL default '0' ) ENGINE=MyISAM ;
-
i cant find the $1 ajax crimes got a link to where you purchased it? i managed to find a fancy ajax crimes from arson which was $5 i did managed to find this for free http://www.cronwerks.com/forum/free-user-created-mccode-mccodes-mods/99-ajax-crimes/
-
alright thanks for that helped a bit i was having problems with some scripts when php updated like was not able to log in etc i thought it was the host but tried it on lower version on php and works fine so after reading that link i wasnt putting a / at the end and never used the i after the / either
-
Thwis might be a stupid question but if i as to buy a v2 license would the code be updated for example ereg to preg_match thanks steve
-
i worked with v2 for a while only look at redux i have had is the demo and converting 1 mod from redux to v2 iam going to look more into the nwe i see its cheaper too thanks for the comment peter.
-
So i was thinking of buying MCCodes Redux and just wanted to know is it worth the money? Thanks Steve
-
just downloaded and installed its missing a sql file Unknown column 'arm_wager' in 'field list' Dont know if this is right but this is what i used for the sql other problem iam getting is when you try to train it comes up Error! Something went wrong ALTER TABLE `login` ADD `arm_perc` VARCHAR( 255 ) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL DEFAULT '0' ALTER TABLE `login` ADD `arm_level` VARCHAR( 255 ) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL DEFAULT '0' ALTER TABLE `login` ADD `arm_time` VARCHAR( 255 ) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL DEFAULT '0' ALTER TABLE `login` ADD `arm_wager` VARCHAR( 255 ) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL DEFAULT '0' ALTER TABLE `login` ADD `arm_losses` VARCHAR( 255 ) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL DEFAULT '0' ALTER TABLE `login` ADD `arm_winnings` VARCHAR( 255 ) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL DEFAULT '0'
-
its sumthing to do with the database connection anyways after i read your post i used google and i added a db connection into the file as i tried to include the connect file but didnt work it works now but its on a white background instead of being on the layout
-
Ok the link in the character info doesnt take you to your profile here is link <div style="float:left; width:24%"><b>Name:</b> <?php echo "<a href=\"view_profile.php?name=".$name."\" onFocus=\"if(this.blur)this.blur()\">".$name."</a>";?></div> i added <div style="float:left; width:24%"><b>Name:</b> <?php echo "<a href=\"files/view_profile.php?name=".$name."\" onFocus=\"if(this.blur)this.blur()\">".$name."</a>";?></div> then i got these errors Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: Access denied for user 'root'@'localhost' (using password: NO) in /home/crimelan/public_html/files/view_profile.php on line 2 Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: A link to the server could not be established in /home/crimelan/public_html/files/view_profile.php on line 2 Warning: mysql_query() [function.mysql-query]: Access denied for user 'root'@'localhost' (using password: NO) in /home/crimelan/public_html/files/view_profile.php on line 3 Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in /home/crimelan/public_html/files/view_profile.php on line 3 Access denied for user 'root'@'localhost' (using password: NO)
-
is it just be or is there no organized crimes in gl engine i can see a table in the database but no files was wondering if theres any free ones out there if not willing to pay message me or reply here
-
it was giving everyone the same respect as me. i got it fixed now i went through the files again and found the id was simple actually surprised i never tried it $id is what i used and it works now tested with 2 accounts
-
works like a charm thanks alot SRB and everyone else who helped :) It worked when i added ($_SESSION['user_id']) but it gave everyone the same respect as you said will need to find the proper way to get the id just go through every file untill i see it
-
Sounds right but still no luck finding it will keep looking
-
alright done that still no change heres what i got so far function calcRespect($user=0) { if($user != 0) { $user_pull = mysql_query("SELECT money, bank FROM login WHERE id='" .abs(intval($_SESSION["user_id"])). "'"); $user = mysql_fetch_object($user_pull); } else { $user = $ir; } $respect= (($user['money']+$user['bank'])/1500*1)+5; return round($respect); } since the globals bit has been taken out what would this be changed to $user = $ir;
-
there is no sql file needed for this as i said it works fine on mccodes v2 as thats what i paid for it to be codded for but i took a interest in the gl engine again and want to have it here what do you mean take out the mres? thanks for reply's steve
-
[ATTACH=CONFIG]523[/ATTACH] There is no errors when im using it its just not giving them respect the way its set out is it should start out with 5 respect and gain 1 respect for every $1500 they make but it aint adding on the respect after they gain money i didn't think i would need the globals when a user joins the game they start with $1500 this works fine on mccodes the way it is just because gl engine is coded differently
-
when i say a mod its more of just a small function What it does: checks users money and bank money and gives them respect based on the money they have function calcRespect($user=0) { global $db, $ir; if($user != 0) { $user_pull = $db->query("SELECT money, bankmoney FROM users WHERE userid = ".abs((int)$user)); $user = $db->fetch_row($user_pull); } else { $user = $ir; } $respect= (($user['money']+$user['bankmoney'])/1500*1)+5; return round($respect); } cant get it to work on the gangsters legend script it shows up as 5 respect as thats what they get when they start iam not to sure on the id and ($user['money']) Here is what i tried. function calcRespect($user=0) { if($user != 0) { $user_pull = mysql_query("SELECT money, bank FROM login WHERE id='" .mysql_real_escape_string($_SESSION["user_id"]). "'"); $user = mysql_fetch_object($user_pull); } else { $user = $ir; } $respect= (($user['money']+$user['bank'])/1500*1)+5; return round($respect); }
-
hey can anyone help me with this got it all working accept my layout its messing it up [ATTACH=CONFIG]494[/ATTACH] when i try to add the bit of css to my header or my current css file it messes up the whole page my header file uses div tags i also tried to reduce the table width in the viewuser.php but no luck at all
-
Ok no problem
-
i dunno if you used the search feature but i remeber there was a random event mod out there in the free section http://makewebgames.io/showthread.php/37840-Random-Event-Mod?highlight=random+event
-
ok i found someone for the job you can close this thread now thanks