Jump to content
MakeWebGames

Gta


Newbie

Recommended Posts

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 by Newbie
Link to comment
Share on other sites

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 by bladewolf2010
Link to comment
Share on other sites

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

Link to comment
Share on other sites

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. :)

Link to comment
Share on other sites

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))

Link to comment
Share on other sites

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).

Link to comment
Share on other sites

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 .

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...