Jump to content
MakeWebGames

Recommended Posts

Posted

Hey guys heres my first mod i have ever made and i am very happy with this mod has it is my first :) Btw Does AnyOne want to secure it for me Has it is'nt Secured I will Learn On How to Secure soon too :)

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

Posted

Re: Food Shop [Mccode V2]

404!

The page you were looking for is not available.

my1.php?action=buy

is the file spose to be called my1.php?

EDIT: just changed file name, worked gr8 :D +1

Posted

Re: Food Shop [Mccode V2]

you forgot the db query to take the cash away when u buy a burger

here is it fixed

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

btw prices are 10x more

Posted

Re: Food Shop [Mccode V2]

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Hey!! You nicked my idea :P, its cool I'm going to make a version where theirs pics and stuff but here's a update on your security ;)

Posted

Re: Food Shop [Mccode V2]

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Hey!! You nicked my idea :P, its cool I'm going to make a version where theirs pics and stuff but here's a update on your security ;)

Thanks Atleast Am getting somewhere in php

Posted

Re: Food Shop [Mccode V2]

 

$db->query("UPDATE users SET money=money-10 WHERE userid=$userid"):

Thats the Query so when you buy a burger it takes the money out

In sprintf(); form

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

Posted

Re: Food Shop [Mccode V2]

Here's a base for you..

functions "bur" and "pizza" have not been touched...

Hopefully it shows you a better use of sprintf() and neater code.

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

Posted

Re: Food Shop [Mccode V2]

Try to name the links more appropriate, so something like burger, chips, pizza. Also, why does everyone use functions with the switch?

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

Posted

Re: Food Shop [Mccode V2]

Hey to change the price look for

if($ir['money'] > 2 )

{

echo "You Bought A Potion Of Chips Enjoy";

$db->query("UPDATE users SET money=money-5 WHERE userid=$userid");

Change the 2 To the price you want it to be on if($ir['money'] > 2) then change the sql query where it sayes money=money- so when you buy it how much mnoey it should take out from the user

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