
boionfire81
Members-
Posts
532 -
Joined
-
Last visited
-
Days Won
6
Content Type
Profiles
Forums
Events
Everything posted by boionfire81
-
This is the only sql line that did not work. :/
-
removed the ' and got You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
-
Is it changeable? Right now learning to read/write php. Mysql would break my brain lol
-
Adding this Mod Advanced Property System & I had issues with 2 of the install instructions First a mysql issue with ALTER TABLE `properties_mod_user` ADD `upgrades` VARCHAR( 200 ) NOT NULL COMMENT ' returned invalid syntactic. My second issue is with this step: 4) Open ‘globals.php’ and find the following snippet of code $ir=$db->fetch_row($is); Now, directly under it, add the following; /* Properties mod - sniko */ include_once('property_mod_globals.php'); if(array_key_exists('hNAME', $ir)) { $ir['hNAME'] = ($ir['houseid_row'] > 0) ? get_house_name_by_row($ir['houseid_row']) : $ir['hNAME']; } My code prior global $jobquery, $housequery; if (isset($jobquery) && $jobquery) { $is = $db->query( "SELECT `u`.*, `us`.*, `j`.*, `jr`.* FROM `users` AS `u` INNER JOIN `userstats` AS `us` ON `u`.`userid`=`us`.`userid` LEFT JOIN `jobs` AS `j` ON `j`.`jID` = `u`.`job` LEFT JOIN `jobranks` AS `jr` ON `jr`.`jrID` = `u`.`jobrank` WHERE `u`.`userid` = {$userid} LIMIT 1"); } else if($housequery) { $is=$db->query( "SELECT u.*,us.*,h.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid LEFT JOIN houses h ON h.hWILL=100 WHERE u.userid=$userid"); } else { $is = $db->query( "SELECT `u`.*, `us`.* FROM `users` AS `u` INNER JOIN `userstats` AS `us` ON `u`.`userid`=`us`.`userid` WHERE `u`.`userid` = {$userid} LIMIT 1"); } $ir = $db->fetch_row($is); if ($ir['force_logout'] != '0') { $db->query( "UPDATE `users` SET `force_logout` = 0 WHERE `userid` = {$userid}"); session_unset(); session_destroy(); $login_url = "http://{$domain}/login.php"; header("Location: {$login_url}"); exit; } Error on property_mod_staff.php PHP Warning: array_key_exists() expects parameter 2 to be array, null given (2) Action taken: Line executed: /home/public_html/property_mod_staff.php:24
-
Sounds really cool, except it doesn't seem to be giving steps to use. I thought it might be the cron/wait but ran the cron_day and still nothing.
-
In keep with the theme and making the game full depth, I'm wanting to input the city descriptions in the language of the city. But such languages as chinese, arabic, and some spanish characters are not allowed. Can this be changed? It is probably a security thing monitoring the input of the field, which is great, but can I disable it temporarily?
-
I figured it out. lol was going a bit faster over here, and saw 'name'. Didn't realize it should be 'energy' lol
-
My bar displayed looks like this <b>Energy:</b> {$enperc}%<br /><img src='greenbar.png' width='$enperc' height='10' /><img src='redbar.png' width='$enopp' height='10' /><br />
-
$enperc = min((int) ($ir['energy'] / $ir['maxenergy'] * 100), 100); $wiperc = min((int) ($ir['will'] / $ir['maxwill'] * 100), 100); $experc = min((int) ($ir['exp'] / $ir['exp_needed'] * 100), 100); $brperc = min((int) ($ir['brave'] / $ir['maxbrave'] * 100), 100); $hpperc = min((int) ($ir['hp'] / $ir['maxhp'] * 100), 100); $enopp = 100 - $enperc; $wiopp = 100 - $wiperc; $exopp = 100 - $experc; $bropp = 100 - $brperc; $hpopp = 100 - $hpperc; Seems simple enough. Now that I see where the code is. But mathematically I'm unsure the * 100), 100);
-
I'm looking to adjust the bars from a percentage to value for the energy bar. Is that possible?
-
Im a hobby coder. So what I do know is basically self taught through reading actual code, trial & error, interacting with other coders on real code. That page above seriously isnt part of my language. lol I tried but, it just is 100% over my head.
-
here is one line $ret.="\n<option value='{$r['itmid']}'";
-
A different version of the same error on every page about. ***** Replaces the change in each page A non-critical error has occurred. Page execution will continue. Below are the details: PHP Notice: Undefined index: ****** (8) Line executed: /home/public_html/88.php:** The basic of it all Undefined (8) what do I do?
-
Trying to figure out these values Drug Effect <input type = 'text' name = 'dEFFECT' value = ''> Energy <input type = 'text' name = 'energy' value = ''> Will <input type = 'text' name = 'will' value = ''> Brave <input type = 'text' name = 'brave' value = ''> Health <input type = 'text' name = 'health' value = ''> Surely not just text. Should be a positive or negative integer and would it be a base number added/subtracted or a percentage value?
-
Any updates?
-
Just trying to tweak this mod http://makewebgames.io/forum/game-engines/mccode-development-support/free-modifications/2025-mccode-v2-profile-image-uploader change the path and changed display_pic to gangFLAG
-
change to mysqli now its PHP Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, null given (2) This is the same code as used in another upload form. Not sure what I'm missing
-
So I'm tweaking the profile pic upload to upload and display a gang flag But I'm getting this error Snippet area /*Check DB*/ $check = mysql_query( sprintf("SELECT COUNT(*) as cnt FROM `users` WHERE `gangFLAG` = '%s'", mysql_real_escape_string($picture))); $checks = mysql_fetch_array($checks); if ($checks['cnt'] > 0) { echo 'Please use another image name Back'; $h->endpage(); exit; }
-
mccode-v1 Travel to User Location button on profiles
boionfire81 replied to Cyanide's topic in Free Modifications
Would this work for v2.0.5? -
I was trying to figure out how to add a staff member. Instead of upgrading them, when I clicked secretary it downgraded my admin, and now there is no admin account!
-
mccode v2 advanced properties mod crital error
boionfire81 replied to boionfire81's topic in Modification Support
Yes sir, it is. I'm looking at a few of your mods. lol. Just only messing with a couple right now. -
Yes it is.
-
There's no installer, just copy & replace code then go.
-
What code snippet do you need? This is out of box.
-
[h=1]Critical Error[/h] A critical error has occurred, and page execution has stopped. Below are the details: PHP Warning: Missing argument 2 for farm::installed(), called in /home/public_html/staff.farm.php on line 67 and defined (2) Action taken: Line executed: /home/public_html/farm.class.php:23