Jump to content
MakeWebGames

help donation


Solid Snake
 Share

Recommended Posts

Re: help donation

ive never thought about making a city donator only, but i guess this is how you would do it....if im wrong, remember, this is just a guess

 

if ($r['cityid'] ==2 && $ir['donatordays'] < 1)
{
print "You cannot travel here, this city is for donators only.

[url='index.php']> Back[/url]";
$h->endpage();
exit;
}

 

once again so im clear on this....im not sure about this code, and i have just woke up, so expect the worst lol

Link to comment
Share on other sites

Re: help donation

Yes i believe this is correct. You could put something like this into monorail:

 

if($_GET['to'] == **CITY ID FOR DONATORS ONLY GOES HERE** AND $ir['donatordays'] ==0)
{
die("Donator Only City");
}
Link to comment
Share on other sites

Re: help donation

 

Yes i believe this is correct. You could put something like this into monorail:

 

if($_GET['to'] == **CITY ID FOR DONATORS ONLY GOES HERE** AND $ir['donatordays'] ==0)
{
die("Donator Only City");
}

 

Without the asterisks of corse. =P

Link to comment
Share on other sites

Re: help donation

 

but dont you have to put donator.php in there somewere

No you dont, but if you wanted to, you could do it like this....

 

if($_GET['to'] == **CITY ID FOR DONATORS ONLY GOES HERE** AND $ir['donatordays'] ==0)
{
die("Donator Only City

You can become a donator and access this city by clicking [url='donator.php']Here[/url]

> [url='monorail.php']Back[/url]");
}
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.

 Share

×
×
  • Create New...