Jump to content
MakeWebGames

Lithium

Members
  • Posts

    1,099
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Lithium

  1. Re: Cron advise as of... you say that you are having issues with auctions... prolly they are going to negative as well... This mysql_query("update auctions set time=time-1",$c); should be set as mysql_query("update auctions set time=time-1 WHERE time > 0",$c); after that, just place a dummy auction let it go to 0 and test it again
  2. Re: [MCODES V2] Userids Probs hmmm... they do have or they do not? :|
  3. Re: problem creating new shops at first sight, you have 4 fields on table, and trying to insert 5.... though... your error says exactly that... "QUERY ERROR: Column count doesn't match value"
  4. Re: Problem Running Crimes it can be jailed... though the problem is the missing field on the table ;)
  5. Re: Problem Running Crimes yup... QUERY ERROR: Unknown column 'jailed' in 'field list' <- this is your problem... Is that hard to find? :|
  6. Re: Mccodes V2 crime formula help @ gideon, i haven't fixed it, just pointed you out where the error is ;)
  7. Re: [Edited V.lite] Free Game Souce Let Me See How Dumb This Goes... If Dabs Have Made A Version By The Half (Basicly He Did... Lite), And He Did Gave It Away For Free (Go Figure), As There Are Supposably Better Versions Out As You Said, I Don't See Everyone Bitching About It. Also You Are Eating Up Your Own Words, You Say "I Pointed Out That It Wasn't Finished", Yet I Read "It's Different However It's Not Fully Working ... I'd Concentrate On Fixing All Problems Before Actually Posting Anything." Seems That Those Are Two Different Things. Also I Do See People Bitching For Having "Half" a Source, But The Funny Thing... It's Dabs "Half", Also, You Are Worried For Not Having A Full Source, Yet I Don't See You Complaining To Dabs, Only To Sniko (As He Is Not Even The Author Of The "Half Source" You're Bitching About). One Other Point, Seems You Also Don't Know To Read Your Own Language. I Didn't Said You Called Ignorant/Dumb To Sniko, As You Were Replying To My Post, So I Did Replied You Back. (Damn all this caps looks leet (not))
  8. Re: Mccodes V2 crime formula help yup your str_replace() statement is one string shorter than it should be array("LEVEL","CRIMEXP","EXP","WILL","IQ","STR","AGI","GRD") -8 array($ir['level'], $ir['crimexp'], $ir['exp'], $ir['will'], $ir['IQ'], $ir['strength'], $ir['agility'], $ir['guard']),$r['crimePERCFORM']) - 9
  9. Re: [Edited V.lite] Free Game Souce   As of, dumb or ignorant, seems to be you, as it seems you have never done anything worth the effort to call your own. Posting half the product, simply means someone can pick it up and complete it, so it's an advance. also not finishing something means "not being able to do?" damn, yet again you show the dumb/ignorant is you. the consumer will get bored with it you say... more dumb/ignorant statement, unless you pick such a code, where the author refers as unfinished and having errors, and present it to the final user. Call it a waste of time... for someone like you, maybe. For others, who knows?
  10. Re: [Edited V.lite] Free Game Souce   that is plain bs. As sniko said, not fully working, besides he simply shared a full ground "project" based on lite. For what it matters, he got stucked somewhere, or lost interest, so he decided to share it. Complaining about it just points one of two... You are only bitching for your lack of knowledge to pick it up and do something out of it, or simply because you might think you look good trashing out everyone's effort to share even if not complete.
  11. Re: Exp bar seems a little bit broken.. bar1 + bar2 = max width 100 (or 100%) , where bar2 needs to be maxbrave (or 100%) minus current brave (bar1 or % to total) so, check the code and you might notice you are not doing the correct calculations :)
  12. Re: [MMCODE V2] Set Sell Price of houses after they are Purchased...   printf("<h3 class='success'> You sold your %s for %d and went back to your %s </h3>", stripslashes($np['hNAME']), abs(@intval($r['hSELLPRICE'])), $housesConfig['DEFAULTHouse']); Should be... (if i saw it right) printf("<h3 class='success'> You sold your %s for %d and went back to your %s </h3>", stripslashes($np['hNAME']), abs(@intval($np['hSELLPRICE'])), $housesConfig['DEFAULTHouse']);
  13. Re: Alternative to eval()   Basicly parse a db field that will only contain $vars to be passed out. I can do it using eval(), though as for safety eval() is not widely recommended
  14. I'm looking for a decent and fair alternative to the use of eval(). I am pulling out some codebits from within a DB field, yet the attempts i made with regex simply failed and the only way i managed to do it decently was using eval()... though eval() does the work just fine, it may lead some holes, so i am shouting for some tips/examples up on this subject!!! Thank you :)
  15. Re: How do I start reading from a specific line in a text file   It does make sense, and yet my opinion is still that you should either delete or empty the file after passing the data to the db, also, for the file itself it seems you have timestamps there so why not fetching data with the specific timestamp and the lines that follow?
  16. Re: How do I start reading from a specific line in a text file you need to have the file with the complete full insert's or you need it only hourly (the text one)? if you only need it hourly, why not deleting the file after dumping the data on to the db?
  17. Re: Cron Job Replacement @ MDK... this doesn't seem a mod that can take any screenshot... what would it be showing? the code itself? ;)
  18. Re: Radio buttons and enabling textfields hmmm, will try to work from here, thx for the tips :)
  19. Re: [mccode v2] Stock Market. Working + Secured   I'm guessing that's not right?   This can be right... overall progression might had the stock price lowered to let's say... $1651, and at last update increased by $160 to $1811, maintining the price lower than original sell price...
  20. Re: problem with = prolly the regex to secure the input's is making that?
  21. Having a few radio buttons and let's say 2 textfields (both disabled), how can i do to enable one or other textfields, depending on the radio button that is selected?
  22. Re: Connecting to 2 MySQL databases from the same script.   Hehe i thought of that option too, but turns out more messy!!
  23. Re: Connecting to 2 MySQL databases from the same script. Basically, you need to create a second mysql connection and explicitly tell each mysql function which one to use. $con1 = mysql_connect( 'host','user','pass' ); $con2 = mysql_connect( 'host','user','pass' ); //Use first connection mysql_select_db( "db1", $con1 ); //Use second connection mysql_select_db( "db2", $con2 ); //Query first connection (db1) mysql_query( "SELECT etc....", $con1 ); //Query second connection (db2) mysql_query( "SELECT etc....", $con2 ); As of the "style" on MCC v1.* using the $c for the connections, you'd be using $con1 (for one db) and $con2 (for the other)
  24. Re: [v2] Event add on first loggin. my own way to add an event.... I don't make userstats upon registering, but on first users login... simply checking if userstats for that user are there... if not, create the userstats, and then add the event. 1 time and it becomes surely at 1st login :)
  25. Re: [mccode v2] View User   Add this to both files below include "globals.php"   if ($_GET['userid']) { $r['userid'] = abs((int) $_GET['userid']); } else { die("Invalid use of file!"); }   And on the viewuser... the link to cactons.php should be 'cactions.php?userid={$r['userid']}' Seems sniko forgot to pass the vars ;) though as for what i was told, everything works fine :)
×
×
  • Create New...