Newbie Posted September 11, 2012 Posted September 11, 2012 (edited) EDIT: Was stopping users from stealing a car even if they have 0 gtaMAX but fixed and updated post. EDIT2: forgot to add it to users get +1 gta attempts even if they fail all fixed now :) EDIT3: Found a typo :) Info: Lets user steal a car and sell it for cash cars are easy added through php my admin or just copy the insert bit in sql part 2 users get a max of 50 gta's a day (easy changed) I am going to keep at this and try think of things to add into it hope ya enjoy SQL: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. SQL PART 2: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. gta.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. last but least Put this in cron day You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Edited September 11, 2012 by Newbie Quote
Guest Posted September 11, 2012 Posted September 11, 2012 Indent your code please. Then I will read it Quote
HauntedDawg Posted September 11, 2012 Posted September 11, 2012 Indent your code please. Then I will read it Like he has to care if you read it.. or not.. Quote
Newbie Posted September 11, 2012 Author Posted September 11, 2012 I am going to be working on a staff file for this to add it easier also will post up some screenshots of working and failing etc when i get back unless someone wants to do it for me :P (post screenshots that is ) Quote
Guest Posted September 12, 2012 Posted September 12, 2012 Like he has to care if you read it.. or not.. Like I care about your shitty response >.>, indenting code is good practice and actually makes it readable Quote
bladewolf2010 Posted September 15, 2012 Posted September 15, 2012 Indent your code please. Then I will read it Just for you :) It's indented, hope you enjoy hehe. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
Newbie Posted September 15, 2012 Author Posted September 15, 2012 if he wanted to read is so bad he could of done it himself sure it doesn't take to long :rolleyes: Oh btw thanks :P Quote
bladewolf2010 Posted September 15, 2012 Posted September 15, 2012 (edited) Lol, it doesn't really, I just felt like being a smart ass hehe. That is like a rainbow tabbing or something :P I dislike doing it that way, I prefer to leave it to the left depending on what I'm using to code with. PS: Don't tab like that lol. Here's your code tabbed propperly well, there is no correct way to tab, it's all personal preference. I'm sure quite a few will disagree with that but meh. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Edited September 15, 2012 by bladewolf2010 Quote
Octarine Posted September 15, 2012 Posted September 15, 2012 Programs must be written for people to read, and only incidentally for machines to execute. H. Abelson and G. Sussman The are correct ways to indent in many languages. In PHP, both Pear and Zend to my knowledge have published lengthy guidelines on how to tackle the problem. COBOL compilers were extremely strict in this, Whitespace I assume is equally strict for obvious reasons, Python has PEP8, C has indent though which style (GNU, K&R, ANSI) seems to be author-dependant; certainly a good number of mid to large companies have if not a documented style, at least one which is adhered to. Lazy (left aligned) code has no place anywhere these days. #canofworms :D Quote
rulerofzu Posted September 15, 2012 Posted September 15, 2012 Like I care about your shitty response >.>, indenting code is good practice and actually makes it readable Such a professional reply from a member of Mcc Staff. Quote
bladewolf2010 Posted September 15, 2012 Posted September 15, 2012 Such a professional reply from a member of Mcc Staff. I know right, we have to just love the professional staff here, with how they treat us and what not ain't :P The are correct ways to indent in many languages. In PHP, both Pear and Zend to my knowledge have published lengthy guidelines on how to tackle the problem. COBOL compilers were extremely strict in this, Whitespace I assume is equally strict for obvious reasons, Python has PEP8, C has indent though which style (GNU, K&R, ANSI) seems to be author-dependant; certainly a good number of mid to large companies have if not a documented style, at least one which is adhered to. Lazy (left aligned) code has no place anywhere these days. #canofworms :D Thanks for that little bit of information. :) Quote
rulerofzu Posted September 15, 2012 Posted September 15, 2012 I actually prefer to leave it all on the left. Its my code and my brain prefers it like that. Quote
bladewolf2010 Posted September 15, 2012 Posted September 15, 2012 I do if I'm using coda, if I'm using dreamweaver I let it do the indenting itself Quote
Djkanna Posted September 15, 2012 Posted September 15, 2012 Such a professional reply from a member of Mcc Staff. Well it was a 'shitty response', to a valid statement. Plus that meme is overused. :D The mod sounds cool, good job! (not sure if I've seen a 'gta' mod for MCCodes before, I know GL has something similar (or at least similar in name)) Quote
bladewolf2010 Posted September 15, 2012 Posted September 15, 2012 It's only when I use windows, I'll use notepad++ once in awhile :P those only two I actually like. Quote
Spudinski Posted September 15, 2012 Posted September 15, 2012 The are correct ways to indent in many languages. In PHP, both Pear and Zend to my knowledge have published lengthy guidelines on how to tackle the problem. COBOL compilers were extremely strict in this, Whitespace I assume is equally strict for obvious reasons, Python has PEP8, C has indent though which style (GNU, K&R, ANSI) seems to be author-dependant; certainly a good number of mid to large companies have if not a documented style, at least one which is adhered to. Lazy (left aligned) code has no place anywhere these days. #canofworms :D One more reason for people to begin to program with Python. I prefer K&R in whichever language I decide to use, it's a well formatted style created by one of the pioneers of programming(refer:C K&R). Quote
Newbie Posted September 16, 2012 Author Posted September 16, 2012 Well it was a 'shitty response', to a valid statement. Plus that meme is overused. :D The mod sounds cool, good job! (not sure if I've seen a 'gta' mod for MCCodes before, I know GL has something similar (or at least similar in name)) Thanks yeh i seen it on gl and bunch of other scripts so i decided to try and make it for mccodes as never seen it done never quite turned out the way i wanted but will deffo put more work into it . Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.