-
Posts
2,130 -
Joined
-
Last visited
-
Days Won
145
Content Type
Profiles
Forums
Events
Everything posted by Magictallguy
-
For once, I have to agree with Sim! A switch statement might be better suited here. It's a little more verbose, but that's part of the point here - easier to visually break the logic apart. Still, an if statement would suffice, though you do sacriface a little readability for it.
-
if($item_equip_area === 'head') { $col = 'equip_head'; } elseif($item_equip_area === 'shoulder') { $col = 'equip_shoulders'; } elseif($item_equip_area === 'knee') { $col = 'equip_knees'; } else { $col = 'equip_toes'; } $this->db->query('UPDATE character_list SET '.$col.' = ? WHERE userid = ?');
-
mccode-v2 Updated Newspaper - more than one page
Magictallguy replied to Magictallguy's topic in Free Modifications
- Rewrote staff functions - Rewrote newspaper Implemented self-scaling methods. See SQL Command's note -
Do any of your item names contain a closing bracket?
-
Speak to your host about installing the extension you need. Edit; Or, if your host supports Multi-PHP versions, then drop your PHP version down to something below PHP7
-
To clarify, are these issues you're experiencing with official GL stuff, or are you effectively tracking issues from your own modifications to your copy of GL?
-
dshafik's php7-mysql-shim may be of use to you here. Easiest way to implement, I feel, is through Composer. Simply require the package in, include the vendor's autoload.php, go! Failing that, grab a copy of src/mysql.php (in the same Git repo), upload said copy to your files, include it before running any code that requires PHP5.4. There are certain methods that cannot be replicated, even with a shim. However, you're less likely to run into these using game engines currently available on MWG.
-
Running multi-PHP versions side-by-side is possible. Getting relevant information now Addition; while I wouldn't recommend it as a long-term replacement, a "shim" can be a very useful tool while migrating versions. In this case, a PHP5.4 shim would allow you to continue running 5.4 code on a 7 system. Update: MWG does support PHP5.4! (along with 5.5, 5.6, 7.0, 7.1, 7.2, 7.3, and 7.4 - at the time of writing)
-
- What are point packs? - How do they work on your site? I'm guessing they're a trade of some kind. If so, what can be obtained in return? - Again, if trade; are these point packs to be a direct "pay x points, get y benefits immediately", are they usable items, or something else entirely? - What are coin packs? - How do they work on your site? You imply that Coins are a premium currency, so I hazard a guess at a form of donator pack. - Is "coin packs" to be taken literally; i.e., a pack of coins? Or are they to be something traded into return for existing coins?
-
It is odd that an invalid database connection would lead to a 404. Mind sharing a little more info, should anyone else happen to run into this?
-
JavaScript Display errors on Android Mobile
Magictallguy replied to Sim's topic in Programming Tools, Software and much more
If @gamble's solution isn't any good for you, I've seen this in use in the past -
JavaScript Display errors on Android Mobile
Magictallguy replied to Sim's topic in Programming Tools, Software and much more
You've misunderstood a joke and taken it as attitude, then a position check. Nice. I'm sooo inclined to actually help you now. Back when I was coding on a phone, I used Droid-Edit. It allowed console access for locally-running scripts. Failing that, head to about:debug in a Chromium-based Android browser to access console output -
JavaScript Display errors on Android Mobile
Magictallguy replied to Sim's topic in Programming Tools, Software and much more
Yes, a laptop 😛 -
JavaScript Display errors on Android Mobile
Magictallguy replied to Sim's topic in Programming Tools, Software and much more
Yes, a desktop PC -
Got an .htaccess file hiding somewhere? There could be directives within it overriding intended behaviour
-
To what does the URL change when you attempt to click on a link within your city?
-
Relatively certain his statement was directed to me - similar sentiment from me though
-
Lol @ you @Sim Not only the wrong word for the intended meaning, but a word from Old and Middle English; suggesting it's simply not in use anymore. That's the trouble with using older language - contexts are different. How about stop being a young me and drop the attitude; it ain't gonna help you in this world
-
Easy way to check. Does /inc/updates.php exist? If not, it's v1
-
Then you're likely running gRPG v2. You'll be happy to know we have an active community 🙂
-
Downloaded freely, or through @AdamHull?
-
Sadly, no such feature exists in stock gRPG v2 (I'll be sure to add it! Though I can't currently provide an ETA) There are many developers available for hire here who, I'm sure, would be willing to throw some code your way
-
Within your website files, there should be a file named error_log.
-
Hi, welcome to MakeWebGames! Without any further information concerning your issue, we can only take guesses as to its cause. Is there an error log available?
-
To add on to SRB's statement; in some setups, it may be necessary to parse the JSON string into an object before JS will let you use it as such. let scavengeData = JSON.parse(data); alert(scavengeData[0].amount);