Jump to content
MakeWebGames

SHAD

Members
  • Posts

    267
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by SHAD

  1. What would you say about this method to stop multiple log ins? So when a user logs in, he is assigned a new session id, once logged in sucessfully, the sessionid get stored in the DB For any requested pages, check the session id matches, otherwise the the session is destroyed with a message 'You cannot be logged in twice. This way only one person can be logged in at one time from one browser on one machine.
  2. http://redux.mccodes.com/index.php?page=attacklost   QUERY ERROR: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 Query was SELECT * FROM users WHERE userid= Please report this to a admin as soon as possible.
  3. I was thinking, this mccodes global query seems pretty big and selects alot of stuff, so would it not be better to get rid of the global query and only select stuff which is needed on each file, or am i missing something?   global $jobquery, $housequery; if($jobquery) { $is=$db->query("SELECT u.*,us.*,j.*,jr.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid LEFT JOIN jobs j ON j.jID=u.job LEFT JOIN jobranks jr ON jr.jrID=u.jobrank WHERE u.userid=$userid"); } else if($housequery) { $is=$db->query("SELECT u.*,us.*,h.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid LEFT JOIN houses h ON h.hWILL=u.maxwill WHERE u.userid=$userid"); } else { $is=$db->query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid=$userid"); } $ir=$db->fetch_row($is);
  4. Thanks, Yea i understand where your coming from, it's more to do with the complexity then number.
  5. What would you say to be the decent limit for queries on each mccodes page? To keep it loading nice and fast.
  6. why not use snikos gang mod? it has armoury and delete function.
  7. SHAD

    unexpected T_string

    I know echo is slightly faster then print but what's the point of having single and double quotes for echo and print?
  8. SHAD

    editing attack exp?

    Website link?
  9. OK hoping someone can help me out here abit, the below code is just abit of the formula i am making for hit/miss but getting a problem. The output of the below code is 14.2857142857 but i want it just as 14,so how can that be achieved? $MYACCURACY = 1000; $HISDODGE = 700; $Divide = $MYACCURACY/$HISDODGE; $Multiply = $Divide*100/10; if($Multiply < 1) {$Multiply = 1;} else{abs(intval(round($Multiply)));} echo"{$Multiply}"; Thanks :)
  10. I like to hunt for my food, i mean Mods :D
  11. Just need a general hit/miss formula, it's not for mccodes.
  12. I've tried but can't comeup with a good formula for a Hit/Miss. Here are the 2 vars, can anyone help me come up with a good Hit/Miss formula. $Player1Hit = 300; $Player2Dodge = 250;
  13. SHAD

    Free Host

    That seems good idea actually, thank for the advice guys :) Thanks to you to sniko mate :)
  14. Just too curious, how long left till the demo?
  15. SHAD

    Free Host

    Yes i have a valid licence.
  16. SHAD

    Free Host

    Can anyone direct me towards a free host for developement and testing purposes, i've been wasting money on paid host for too long for just testing and development. Any host which supports mccodes for jus developemnt and testing should be fine, bandwidth doesn't matter as it's just tests. Also the signup must be simple and easy, as i hate crappy hosts asking too many questions and their sites filled with bugs and not working properly. Thanks
  17. Ah, if it's just conversion then thats no problem, but i wouldn't fancy totally recoding my mods again. Also if i do pay $40 to upgrade, then can i switch back and forth anytime with license ? Hope CB can clarify.
  18. Will this version of mccodes use the same variables names ect? Like $ir or something, will i be able to integrate mccodes mods with this engine? or is it simply just new engine which will require totally new mods? I just want to be totally sure,beforing spending $40 dollor. I mean talking of my game i havn't changed much from the original mccodes right as yet, as though some files have been edited. and few mods added.
  19. SHAD

    Multi Users table

    Is it a good idea to divide the users table in to 2 or 3 tables, only if your current table has too many columns? Any advantage/Disadvantages of doing this?
  20. I don't have these issues on firefox, but at work, the computer there are old and have old explorer browers, the errors only appear there.
  21. These errors came up on the internet explore. http://img810.imageshack.us/i/mccodeserrorauthen.png/   http://img851.imageshack.us/i/mccodeserrorhome.png
  22. Error on the test site?
  23. Shouldn't be hard to fix really, just find the 'insert' which adds to gang logs when someone declares a war on you and change player id to gang id. Gave you a brief idea.
  24. A big welldone to the Mccodes developers! 2 Cent, :)
  25. Hey all, I wanted to ask that when we buy mccodes, it is registered with a certain domain name, and can only be used under that domain, so if i get a different domain, could i get registered domain changed. (Just a quick question)
×
×
  • Create New...