-
Posts
103 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Everything posted by Jigsaw
-
Thanks for the reply. I get the idea that ++i will increase the value of whatever "i" may be and then return/show the new value of "i" and i++ will increase the value of "i" but still keep the original value... Could you please provide me with an example where this might be used in mccodes (just to strengthen my understanding)?
-
Hi, im learning PHP atm and I'm very confused about how increments work and am failing to make sense of this example that was given to me: e.g. $a = 2; $b = $a++; // $a=3, $b=2 $a = 2; $b = ++$a; // $a=3, $b=3 So "$b" is simply in other terms "$a+1"? And "$a" is 2, therefore $b is supposed to be 3 right? But it says its 2 instead? Could explain how this works pls
-
Hi, I've recently set myself a goal to learn PHP. After years of playing around with Mccodes and not moving past the basics of the language (understandable as I didnt follow any books or tutorials). I want to be able to understand this language to run my own game. Ive already started with a HTML & CSS course via Code academy and have learnt a lot and have taken my time with it, so I can understand all the content. I have also started learning PHP through SoloLearn on my phone and will start the CodeAcademy course on it soon as well to strengthen my knowledge.. LONG STORY SHORT: However, there are times I get really stuck in PHP and cannot understand some areas of the language and would appreciate if someone would mentor me through Skype, please post below and I'll you if you like to help Thanks all
-
Yh sorry I had tested it. And it did have some errors when submitting a comment, but I'm gonna assume its fixed now after your recent posts Thanks
- 8 replies
-
- mccode-v2
- mccode-lite
-
(and 3 more)
Tagged with:
-
Thanks I'll try this out as soon as I can and report back*
- 8 replies
-
- mccode-v2
- mccode-lite
-
(and 3 more)
Tagged with:
-
[uSER=53425]Magictallguy[/uSER] thanks, could you link me to it please?
-
Some ideas: - internal Federal jail system (message system in-game) - voting system with incentive built in (struggle with this) - user profile comments (can't seem to find a good free one)
-
Need to get rid of this asap
-
Haven't been in touch, sorry I'm willing to accept $20, if noone else wants to bid, please PM me, thanks!
-
Hi, I lost all my files in a emergency reboot, so in the process I've lost all my mods and other files. So, I've decided to sell my license, please message me your prices, thank you
-
try this $_GET['action'] = isset($_GET['action']) && ctype_alpha($_GET['action']) ? $_GET['action'] : null;
-
Tried playing around with the code but to no avail ...
-
Still abit confused, so I have the following files voting.php (what the users access to vote) voted.php (the page that the voting link redirects to before the the actual voting site so the credit is made) So I'm guessing I should put the example code in the voted.php (where users get credited)? and then i would use this url as the "postback": www.mygameURL.com/voted.php?ID=$userid or {$r['userid']} Sorry still learning! Thanks
-
Thanks to Dominion for the voting mod, which I've set up, and it works great! But I'm having trouble understand how Inventive setup works, I've looked on top 100 arena (http://www.top100arena.com/incentive.asp) and saw this: <?php //////// Example Post-Back Script for Top 100 Arena // include database connection here // this is the variable we pass back to you that // contains the value you passed to us with the vote link $user = mysql_escape_string($_GET['postback']); // check if the user has voted $check_voted = mysql_fetch_array(mysql_query("SELECT vote FROM users WHERE username = '$user'")); if ($check_voted[0] == 0) { // if they haven't voted // credit the user for voting, like giving +100 money as in the example mysql_query("UPDATE users SET money = money + 100, vote = '1' WHERE username = '$user'"); } ?> Would this be what I add to voted.php or a seperate file? <?php //////// Example Post-Back Script for Top 100 Arena require "lib/basic_error_handler.php"; set_error_handler('error_php'); include "config.php"; define("MONO_ON", 1); require "class/class_db_{$_CONFIG['driver']}.php"; require_once('global_func.php'); $db = new database; $db->configure($_CONFIG['hostname'], $_CONFIG['username'], $_CONFIG['password'], $_CONFIG['database'], $_CONFIG['persistent']); $db->connect(); $c = $db->connection_id; $set = array(); $settq = $db->query("SELECT * FROM `settings`"); while ($r = $db->fetch_row($settq)) { $set[$r['conf_name']] = $r['conf_value']; } // this is the variable we pass back to you that // contains the value you passed to us with the vote link $userid = mysql_escape_string($_GET['ID']); // check if the user has voted $check_voted = mysql_fetch_array(mysql_query("SELECT vote FROM users WHERE username = '$userid'")); if ($check_voted[0] == 0) { // if they haven't voted // credit the user for voting, like giving +100 money as in the example mysql_query("UPDATE users SET money = money + 100, vote = '1' WHERE username = '$userid'"); } ?> Thank you for the help
-
Thanks Dominion!
-
So I have a voting script which doesn't work too well, it has a few errors etc and I was hoping if someone could help me please, if you can please PM me or post here and I'll PM you (due to the mod being a paid mod I can't post it here) it was created by Paul Evans, but I don't think he too active anymore, Thanks all!
-
mccode-v2 New and improved inventory code sources for free!
Jigsaw replied to MDK666's topic in Free Modifications
I would remove those BBcodes from the file e.g. etc aswell -
I see How would I set up meta tags on a mccodes engine?
-
Whats the link between mega tags and SEO? How do mega tags work? I saw them in a file once but had no clue what they did
-
I personally prefer this version of cPanel? http://www.rapidvps.com/img/cpanel_gui.jpg
-
I don't know much about it. (Barely ever used it) why?
-
Thanks I will be using digital ocean in that case