Jump to content
MakeWebGames

Recommended Posts

Posted

First is n00by as hell but

1.how do i check a items id number

2.is there any way to be able to use a item you need a other certain item

eg: to use cocaine you need a crack pipe

3.how do you make it so tht you can use a item and it stays in your inventory

Posted

Re: A Few Things I Want To Ask.......

What do you want to know?

Golden0's example is not the proper way.

To check if it isn't the number specified you would use:

if ($_GET['ID'] != 2){
echo 'The item is not item number two.';
exit; }

 

For your third question, you will need to make an external script to do that.

 

its easy to do all of those things

 

1. http://domain/iteminfo.php?ID=##

2.

if(!$r['itmid']==#)

{

die("You need a crack pipe to use cocaine")

}

3. just dont make it delete itself

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