Jump to content
MakeWebGames

stevenrfc

Members
  • Posts

    97
  • Joined

  • Last visited

Everything posted by stevenrfc

  1. Yeah i put an image path down like this Is that right?   $rank_array = array ( 1 => array('rankName' => 'Noob', 'rankImage' => 'images/none.png'),   And i havent made any changes apart from adding more ranks and editing names. :) Thanks
  2. Thanks for the reply mate :) Its got rid of the error, but nothing shows up on either page. on view user its like this "Rank: " and theres nothing there and on the template its the same lol Thanks :)
  3. :) On viewuser.php   echo " <h3>Profile for {$r['username']}</h3> <table width=100% cellspacing=1 class='table'><tr style='background:gray'><th>General Info</th><th>Financial Info</th> <th>Display Pic</th></tr> <tr> <td> Name: $user_name<br /> User Level: $userl<br /> $u_duties Gender: {$r['gender']}<br /> Rank: display_rank($ir['rank_level']); <br /> Signed Up: $sup<br /> Last Active: $lon<br /> Last Action: $ula<br /> Last Login: $ull<br /> Online: $on<br /> Days Old: {$r['daysold']}<br /> Location: {$location} </td>   On template.php   <div class="content"> <span class="menu"> <ul> display_rank($ir['rank_level'], 'Image'); <br /> display_rank($ir['rank_level']); <b><p>progress bar will go here..</p></b> <hr /> [<a href='<?php echo gen_url('logout',true); ?>'>Emergency Logout</a>] <br /><hr class="hr"/>   Also i checked phpmyadmin and it seems like im not getting any rank exp from doing crimes lol
  4. Thanks for the reply :) When i try to add it to viewuser.php, i get this error Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/eliteco3/public_html/Mods/viewuser.php on line 97 Also when i tried to add them underneath the stat bars they just show up as "display_rank($ir['rank_level'], 'Image'); display_rank($ir['rank_level']);" Maybe im adding them wrong lol ?
  5. Thanks for the reply :) I added in the extra ] but got this error. "Parse error: syntax error, unexpected ']' in /home/eliteco3/public_html/Global/globals.php on line 206"
  6. Thank you for the reply But that just displays my userid, but its cool i think i might have it edit: nope still cant find out how to do it :(
  7. Hello I have added the sql and php, but I am having trouble displaying the rank and image. I tried to add the image and rank name underneath brave and i also tried to add it to users profile, but they didn't work. I'm pretty sure im not doing it right lol. Could someone please explain how i can display this? Thank you :)
  8. Thank you so much! :D:D Much appreciated! I will add this in tomorrow :D
  9. Is this what you mean mate? Sorry for my lack of knowledge in this area inv_id inv_itemid inv_userid inv_qty Would just like to say thanks to you guys for helping me, i really appreciate it! :D:D @SomeRandomBastard i think thats all, thank you :D
  10. Wow thank you for this, even though its not finished, i really appreciate this mate! Thanks :D
  11. Hello :) I bought redux last month and i am now looking for someone to help me with a feature that i would like. I do not have the skills yet to add something like this in, but im looking to hire someone who can. At the moment i just want to look at prices and an estimate on how long it would take? What I am looking for A sort of ranking system for players. Every time a player commits a crime then they get some rank exp which gets added to a rank progress bar which will be next to brave, Once they reach 100% then they move onto the next level. I would like 20 levels each with there own rank name, and once each level is complete then the player receives an event along with special items/money, depending on which level they have completed. I would also like images to appear on the players profiles, these images will change depending on what rank they are at (I can create these images). You could call this a crime rank if you like. I can take care of all the images here, i just need someone with the knowledge and skills to code this. Im not sure how much this would cost, if it were to cost alot then i might have to save for a bit because im in full time education up until june lol. Also i would appreciate it if anyone could point me in the right direction of a trusted coder, i dont really know anyone here so i dont know whos trusted and who isnt :) Anyway, i hope i have supplied enough details so someone can get back to me. Thank you for your time :D
  12. Ah thank you very much! the negative numbers are now solved :D Ive made it that users start with 10 brave too :) By default every time you level you get 2 more brave added to your current brave. I am trying to get mine to add on 10 brave at level 10. Level 1-9 you will not gain any brave. So level 10 you will gain 10 more brave. But after level 10 your brave doesnt increase anymore, so it will cap at 20 brave. Can someone explain to me how i would do this please?   function check_level() { global $db; global $ir, $c, $userid; $ir['exp_needed'] = (int) (($ir['level'] + 1) * ($ir['level'] + 1) * ($ir['level'] + 1) * 2.2); if ($ir['exp'] >= $ir['exp_needed']) { $expu = $ir['exp'] - $ir['exp_needed']; $ir['level'] += 1; $ir['exp'] = $expu; $ir['energy'] += 2; $ir['brave'] += 2; $ir['maxenergy'] += 2; $ir['maxbrave'] += 2; $ir['hp'] += 50; $ir['maxhp'] += 50; $ir['exp_needed'] = (int) (($ir['level'] + 1) * ($ir['level'] + 1) * ($ir['level'] + 1) * 2.2); $db->query( "UPDATE `users` SET `level` = `level` + 1, exp = {$expu}, `energy` = `energy` + 2, `brave` = `brave` + 2, `maxenergy` = `maxenergy` + 2, `maxbrave` = `maxbrave` + 2, `hp` = `hp` + 50, `maxhp` = `maxhp` + 50 WHERE `userid` = {$userid}"); } }   Thank you :)
  13. Thank you very much, i really appreciate your help :D I have another few questions though. How would i make crimes take off 10% brave?   How would i make the crons -10% brave every 5 mins? I have this atm, but its not working, can someone help please? It is leaving me with 85.7142857143% brave, i would like it to take away 10%.   "UPDATE `users` SET `brave` = LEAST(`brave` - ((`maxbrave` / 100) * 10), `maxbrave`),   Also this is going into negative brave, how do i make it stop at 0? Thank you very much
  14. Hello i recently bought redux and im wondering if anyone could help me please. I am looking to change brave into a percentage, Can anyone tell me how to do this please? Thank you.
  15. Oh i see Thank you for the information
  16. Hello Im so close to buying the redux engine, but before i buy it i just have one question. I know there has been some fixes in redux, but how secure is it? Are there any known bugs/exploits? Thank you EDIT: Im really sorry if i have posted this in the wrong place
  17. Ah i see, i will definitely wait now to see what's the best i can get. Thank you. :)
  18. Thank you for the replies everyone, they were all very helpful. I think im going to do what haunteddog said, just use normal hosting and then move when i need to. rulerofzu what is Alain's game engine called? and could you give me some more info about it please? Thank you.
  19. Hello Im probably going to be getting redux soon, but before i buy anything i just need to ask a question. See if i hosted a game with a hosting company would that be laggy or can it handle it? Would i be better off getting a server or vps? Thanks.
  20. Yeah ah, okay well thanks for all your help. :)
  21. Thanks for the info :) Well a game engine in the same sort of category/genre of mccodes if you know what i mean.
  22. I am looking to buy a game script but i just dont know what to buy. As far as i know, Mccodes v2 is very unsecure, so i dont want to buy that. And ravans is basically mccodes? But is there any engines similiar to Mccodes v2 which are far more secure? Thanks.
×
×
  • Create New...