Jump to content
MakeWebGames

Lithium

Members
  • Posts

    1,099
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Lithium

  1. SQL Query   UPDATE uBANK SET bMONEY = bMONEY + floor(bMONEY * 0.01) WHERE bMONEY > 0   #1064 - 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 'UPDATE uBANK SET bMONEY = bMONEY + floor(bMONEY * 0.01) WHERE bMONEY > 0' at line 1 And No matter what, the query is fine, yet it keeps popping that error out!
  2. Re: Help needed   If you can read... Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'root'@'localhost' (using password: YES) meaning... your DB password does not match the one in config file
  3. Re: Battle ladder [Mccodes V2]     Not quite Richard ;) http://unixgeeks.org/security/newbie/unix/cron-1.html
  4. Re: PLEASE DONT LISTEN TO SKULL ABOUT BUYING LW CODES ITS A SCAM   hmmm you have your files outside the game... meaning that you have them on ftp.yourdomain.com and your game is on www.yourdomain.com, interesting... And Cpanel is accessed via game url? oh boy! https://cpanel.yourdomain.com or https://cpanel.yourdomain.com:2082 (or whatever port is defined) or even http://www.yourdomain.com:<port>/cpanel etc etc etc... meaning it should always run under SSL. if the password is shared with another user... well for as much secure a site is... it gets stolen. And people's bigger problem is that they share passwords, or use the same password EVERYWHERE, meaning that sooner or later they will get exposed.
  5. Re: Inventory Help tell me what you have on the itmpic db field you have the filename or /dir/filename.ext ?
  6. Re: Inventory Help src='itmpics/{$r['itmpic']}' if itmpics/ is on /www folder or... try right clicking on the failed image (see properties) and check if you are placing the correct dir
  7. Re: [Help]Scrollbars   I am picky? Seems you are the one that usually tends to pick on things, but generally, without knowing the facts.   Then you're placing a post on a flaw found on IE. That only shows me a couple of things. 1- You've just learned to type "Internet Explorer Flaws" in Google. 2 - You are one of those pseudo-wannabe-leet-kid that just learned to use a computer and after making a bit of searching, thinks he already owns the world. 3 - You use "MICROSOFT A** WIPE" Operating System yet pretend to use something "better" to look leet.
  8. Re: Were does ppl host Fair enough! I seemed to miss the post, as grimsy told what was he running and yours went on that line of thought! :)
  9. Re: [Help]Scrollbars   Will always be? How does that make any sense? Firefox never was, and still currently is not, on top... Do you want to continue using IE, so be it. http://news.bbc.co.uk/1/hi/technology/7784908.stm And only reason why IE is the most browser used. Is because people buy microsoft computer's. Well its easy to find flaws when you look for them http://news.softpedia.com/news/Firefox- ... 8478.shtml Your point? Also, to clarify, people don't buy "microsoft's computers", people do buy what vendors sell. Also, microsoft as far as i know doesn't sells computers.
  10. Re: Were does ppl host   Sorry to say but you are quite wrong, just ask around how many people here are on shared servers with games that make quite an amount of traffic and they don't have a single complaint, unless we go talking on games that have obviously 1k+ users at the same time logged on, which is hardly meets the current usage of most of the game owners around here.
  11. Re: [MC Code V2] Custom Error Pages   Have you ever seen broken links where it says "404 page not found" or something? This will allow you to add custom error pages instead of that Also, there isn't much sense in redirecting an image. You can however block images being used not on your website, check this out.. RewriteEngine on RewriteCond %{HTTP_REFERER}!^$ RewriteCond %{HTTP_REFERER}!^http://(www\.)?YOURDOMAIN.com/.*$ [NC] RewriteRule .*\.(jpg?jpeg?gif?png?bmp)$ - [F] Just a small update on POG1's lines. RewriteRule .*\.(jpe?g|gif|png|bmp)$ - [F]
  12. Re: Inventory Help Prolly this is an error... $i['itmname']="<font color='red'>*['itmpic']</font>".$i['itmname']; *['itmpic'] shouldn't it be something like *$i['itmpic'] or whatsoever?
  13. Re: Were does ppl host   this post confused me... care to explain how it wouldn't be capable?
  14. Re: [MC Code V2] Custom Error Pages   Quite true indeed, so my post should've been... final result will be the same ;)
  15. Re: [need help]car mod Whoever converted that mod from v1 to v2 simply deleted the power() function!
  16. Re: Exp from leaving people not working   Funny but Alabama's code is taken straight form the attacktake.php page, and it seems to be working without even producing an error. You fail too see my point naturally, as you always fail when people point you your flaws. See there you go again bragging, and yet i didn't asked you if you have quit mccodes or not, it doesn't concerns me nor i am a bit interested in knowing it. Yet once again i tell you. State your facts first and then post. (why is this? Because even with a plain original line of code (AH piece of code) you fail AGAIN to see the facts as you should). But then, i might be wrong... and you need to feed your ego trashing people out with your own mistakes, as usual!!! Final note: Seems you also failed to see the target of Alabama's post :D
  17. Re: Exp from leaving people not working   Let me see... On the mysql class file... 2 parameter as you told... function event_add($user, $event) { $this->query(sprintf("INSERT INTO `event` VALUES('', '%d', '%s', '%d', 0)", $user, $event, unix_timestamp())); $this->query(sprintf("INSERT INTO `event_log` VALUES('', '%d', '%s', '%d')", $user, $event, unix_timestamp())); $this->query(sprintf("UPDATE `user` SET new_events=new_events+1 WHERE userid='%d'", $user)); } And incredibly... on globals file... 3 parameters function event_add($userid,$text,$connection=0) { global $db; $text=mysql_escape($text); $db->query("INSERT INTO events VALUES('',$userid,UNIX_TIMESTAMP(),0,'$text')"); $db->query("UPDATE users SET new_events=new_events+1 WHERE userid={$userid}"); return 1; } And now i ask, 2 parameters? hell afterall its not 2, maybe 3, and why not 4? You seem so smart, yet so dumb. You brag about doing mod's with over 5K lines of code and yet you don't even got a clue of what that code is? After all i ask... what are you coding for if you don't even know the damn engine? check again on that "event_add" syntax and you might just find out that is something that effectivelly works as an even, taken somewhere from the log if my memory doesn't fails me. And yet to explain YOUR epic failure, not EineyEntertainment's one. YOU did mention the % thingy not her. She did had a hint towards the potential solution and you went right to the %. As you tend to say to other users, State your facts first, open your mouth after.
  18. Re: [V2]Racer Exp doesnt increase   Why you rounding 0.33? it will result in 0 Really? damn i didn't knew that :S
  19. Re: [MCCODES V2] Fully Customise your game layout   And i thought i was getting older!!! ;) congratulations!
  20. Re: [V2]Racer Exp doesnt increase can't answer... unless you show more code, it'll be hard to come to anyone to give you a correct answer, or even some guidance, unless someone has the same files as you and can help you with that
  21. Re: [V2]Racer Exp doesnt increase $r['rlevel'] = opponent race level $ir['rlevel'] = your level $r['rlevel'] = 1 $ir['rlevel'] = 3 $rexp1 = 1/3 $rexp1 = floor(0.33) or $rexp1 = round(0.33) will make $rexp1 = 0 This is just an example of what can be, yet i don't know about it, though play with the $rexp1 values and check it
  22. Re: [MC Code V2] Custom Error Pages   But you know, all the above codes do exactly the same. so its just a matter of preference on what to use ;)
  23. Re: [Mccodes Lite] Jobs yet another update, yet another piece working quite good!
  24. Re: cron help plz You do that. At least around here, in a situation like that one if you both have the receipt of the purchase, the rightfull ownership is for the first buyer, and the latest buyer was victim of a fraudulent sale, meaning if it was you, you can claim, to whoever sold you, either your money back, or a compensation for it (i would opt for this one as legally you were induced into a fraudulent transaction)
  25. Re: [MC Code V2] Custom Error Pages   When you say doesn't work... on windows machines... it does not as i told! Other than that, take Crazy_T suggestion and add the ob_start(); on top and it would work without giving the "headers already sent" error message :)
×
×
  • Create New...