AnonymousUser Posted November 7, 2014 Share Posted November 7, 2014 Kyle I would love something like this. What I'm looking for tho is player advancement. If they reach so many goals they advance to the next lvl Like ability to "evolve"? Or something like "player ranks"? Quote Link to comment Share on other sites More sharing options...
Tangled Posted November 7, 2014 Share Posted November 7, 2014 (edited) Like ability to "evolve"? Or something like "player ranks"? yes they complete a series of achievements that advances them to the next level Edited November 7, 2014 by Tangled Quote Link to comment Share on other sites More sharing options...
Tangled Posted November 7, 2014 Share Posted November 7, 2014 Like ability to "evolve"? Or something like "player ranks"? I bought a mod from Mccodes for achievements but I haven't been able to download it and I bought it 4 mths ago :mad: Quote Link to comment Share on other sites More sharing options...
AnonymousUser Posted November 7, 2014 Share Posted November 7, 2014 I bought a mod from Mccodes for achievements but I haven't been able to download it and I bought it 4 mths ago :mad: Easily done... Look more into the forums free mods ;) Quote Link to comment Share on other sites More sharing options...
boionfire81 Posted April 18, 2016 Share Posted April 18, 2016 Because " is not a valid delimiter i this context. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Would be the obvious solution after reading the heredoc reference in detail. I've got the same issue. I tried adding include ('global_func.php'); and i said fatal can not call twice, blah. Tried switching the "" to '' and that was a no go. Basically it does not get past the ".class_dropdown(NULL,"classID")." Quote Link to comment Share on other sites More sharing options...
KyleMassacre Posted April 18, 2016 Author Share Posted April 18, 2016 It's because if you have that in global_func.php, it's already included in the file. You can't have two function names that are the same Quote Link to comment Share on other sites More sharing options...
boionfire81 Posted April 18, 2016 Share Posted April 18, 2016 So how should I print the drop down? global_noauth is in register, so produces a fatal if included. BUT without it simply prints the dropdown code. What am I suppossed to do? I'm aware of the issue, but not of a solution. Quote Link to comment Share on other sites More sharing options...
KyleMassacre Posted April 18, 2016 Author Share Posted April 18, 2016 Global non auth includes global func. But maybe you have some what of a default register script? If so, you are probably using heredoc/nowdoc. You will have to do what Alan mentioned and kill it to add th function and start it back up after the function Quote Link to comment Share on other sites More sharing options...
boionfire81 Posted April 18, 2016 Share Posted April 18, 2016 yeah, but how to kill other than just the ending "; and new EOF? My register is default other than http://makewebgames.io/forum/game-engines/mccode-development-support/free-modifications/15655-good-evil This was the part the messed me up call_arbitrary_functions(); Quote Link to comment Share on other sites More sharing options...
KyleMassacre Posted April 18, 2016 Author Share Posted April 18, 2016 That was an example of a function. Quote Link to comment Share on other sites More sharing options...
Dominion Posted April 18, 2016 Share Posted April 18, 2016 Even the name suggested it's just an example... Quote Link to comment Share on other sites More sharing options...
boionfire81 Posted April 19, 2016 Share Posted April 19, 2016 so replace that with include ('global_func.php'); ? Quote Link to comment Share on other sites More sharing options...
KyleMassacre Posted April 19, 2016 Author Share Posted April 19, 2016 Something like this: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. or if your using heredoc: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote Link to comment Share on other sites More sharing options...
boionfire81 Posted April 19, 2016 Share Posted April 19, 2016 (edited) Fatal error: Call to undefined function class_dropdown() in /home/tcxtra5/public_html/register.php on line 297 is with the first With the second actually a white page and Parse error: syntax error, unexpected 'print' (T_PRINT) Edited April 19, 2016 by boionfire81 Quote Link to comment Share on other sites More sharing options...
KyleMassacre Posted April 19, 2016 Author Share Posted April 19, 2016 The first error is because you don't have the function in your global funcs file Quote Link to comment Share on other sites More sharing options...
boionfire81 Posted April 19, 2016 Share Posted April 19, 2016 >.< we already talked about that earlier in this thread Quote Link to comment Share on other sites More sharing options...
KyleMassacre Posted April 19, 2016 Author Share Posted April 19, 2016 The function definition must be in your global functions file. Your Global non-auth file includes your global functions file. So your error is telling me that you do not have that function declared in any file Quote Link to comment Share on other sites More sharing options...
KyleMassacre Posted May 15, 2016 Author Share Posted May 15, 2016 staff_classes.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Add into global_func.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Add into smenu.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. register.php Find: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Add: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Now find your users insert query and add in there player_class then for the values section of the query add '{$_POST['classID']}' a little like this: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Next for the drop down menu, remember for this you must include_once/require_once "global_func.php", so add this in where the player registers: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. And finally the SQL You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.