Jump to content
MakeWebGames

Recommended Posts

Posted

I want a certain aspects of a mod im working on to be only available to users ID 1 and 2

I tried

 

if($_GET['activate'] && $userid == 1&2)

But it just removes the options completely for user id 1.

i know

if($_GET['activate'] && $userid == 1) works but i would like it so id 2 can see said aspects aswell.

ANy help is much appreciated

Posted

Re: id 1 and 2

 

This is what i use in my game and it works

if($ir['userid'] != 1 && $ir['userid'] != 2

{

print "type in here what you want people to see if they are not id 1 or 2

 

I think its wrong because != means equal to and not equal to so everyone can see it.

Try MTG code his always work

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