Jump to content
MakeWebGames

WarMad

Members
  • Posts

    218
  • Joined

  • Last visited

  • Days Won

    7

Everything posted by WarMad

  1. So I’m currently creating my own engine. I am working on crimes but I have no idea how to do a crimes “formula”. The only formula I have worked with was McCraps and that confused the hell out of me and well it sucks IMO… does anyone have any suggestions on something easier then the McCraps crimes formula? I haven’t even started that part yet. I would like it to either go off how much crime exp you have or get harder depending on how much nerve is required to complete it. I don’t even know where to start for it does anyone have any ideas/suggestions for me? I would like the crimes to start off really easy but get Significantly more difficult as you go up in crimes more similar to say torn as much as I don’t want to use it as a reference. Thank you in advance for any ideas/help that anyone gives.
  2. I am currently creating my own script if your willing to help by simply answering my questions when I have them please pm me I’m not new to pho but just came back from a huge coding break so I’m a bit sloppy

  3. Lol I know I was joking because we where told in 2019 it was still going
  4. Is it still going?
  5. Thank you I will play with it and change things around and see what result I get
  6. So i tried that and the error went away but it’s still not showing I am a male it’s just showing the default which I have it as ‘Male’,’Female’,’Unsure’ “Unsure” is default and that’s all that is displaying Never mind that fixed it it was displaying the default because of one of my fix attempts going wrong lol thank you
  7. I was going to remove isset once I fixed it without having it I will give that a try soon as I can Thank you
  8. function __construct($id = null) { global $db; /*users*/ $db->query('SELECT userid, name, pass, level, experance, jail, hospital, gender, race, FROM players WHERE userid = ?'); $db->execute([$id]); $row = $db->fetch_row(true); $this->id = isset($row['userid']); $this->name = isset($row['name']); $this->pas = isset($row['pass']); $this->level = isset($row['level']); $this->exp = isset($row['experance']); $this->jail = isset($row['jail']); $this->hospital = isset($row['hospital']); $this->gender = $row['gender']; $this->race = $row['race']; $players = players::getInstance();
  9. The only way I can get it to go away is if above the error I add. $row[‘gender’] = ‘’; above the error but I know that’s the incorrect way to fix it That being said it’s backend stuff and I would like to do that for the whole users table so it would be an insane amount of extra bs
  10. Ok I will try that I thought it already was not null but I might be wrong thank you and I have edited it so I knew that those 2 are causing the issue once I get home and on the pc I will try it ya it’s already not null And 5 lines above and 5 lines under are the same just with isset() because it was full of them I did that thinking it would fix it because I didn’t fully understand isset not I know it basically says 0 or 1 lol I remembered I had to do __construct($foo = NULL) { To get it to work is there something I can change that to?
  11. So I got it to work but I still get this error it was the isset causing it not to display but I’m not sure how to get it to display without throwing an error the code that is actually causing the problem are these 2(it will be more once I remove all the isset now that I understand it a little more) $this->sex = $row[‘gender’]; $this->crazy = $row[‘crazy’];
  12. Maybe I’m not understanding isset I know with pho 8 you can’t just have $row[‘gender’] it needs to be isset($row[‘gender’]) maybe it’s the isset? I don’t fully understand isset Without it I get array offset errors I will post the code tomorrow I need to wait for my data to renew I don’t have internet I only use mobile hotspot….
  13. And it’s still not displaying There are no errors it’s just a blank spot where gender should be displayed
  14. ok I am making my own game script and I for some reason started it in php 7. Now that i upgraded to php 8 i cant get gender(in the database as enum) to display as text i can only get it to display a blank spot where the text should be which gives an array offset error or i get it to display as a number the game is also running on PDO. Does anyone have any suggestions? oh and im doing it all from xampp not sure if that matters i had to change it to int and add if 1 male else if 2 female etc if anyone knows a better way to do it in php 8 let me know
  15. we are the same age
  16. lol exactly anyone who knows mtg even a little will trust it
  17. Has anyone gotten this to work?
  18. Great job with v3 man we are loving it
  19. Yes that was me
  20. i want it!!!!!!!!!!!!!!!!!!!
  21. ok gotcha
  22. i might give that a try is it easy to install?
  23. let me know how it is.
  24. I just got Ubuntu the other day. Im still figuring everything out. I it took me 3 days just to get my offline server fully working for php and mysql lol.... all thanks to @Magictallguy i finally got it working. So far i have a love hate for it but im going to continue to use it until it does not confuse me anymore then im going to decide if im going to keep it or not.
×
×
  • Create New...