Jump to content
MakeWebGames

Idea about donator cyber bank


Godhand

Recommended Posts

I was trying to code a cyber bank for donators without fees and I got this message

Parse error: syntax error, unexpected T_EXIT in /home/mysitedirectory here/public_html/donatorcyber.php on line 7

and heres the lines of code near it

<?php

include "globals.php";


if($ir['user_donatordays']=0
die("Donators only"); 

print "Cyber Bank";
if($ir['cybermoney']>-1)

I am trying to get it so not have a fee- I've tweaked that but I can't get it solved. I'm not sure how to code it completely just thought it would be a nice feature to add.

Link to comment
Share on other sites

Re: Idea about donator cyber bank

 

I was trying to code a cyber bank for donators without fees and I got this message

Parse error: syntax error, unexpected T_EXIT in /home/mysitedirectory here/public_html/donatorcyber.php on line 7

and heres the lines of code near it

<?php

include "globals.php";


if($ir['user_donatordays']=0)
die("Donators only"); 

print "<h3>Cyber Bank</h3>";
if($ir['cybermoney']>-1)

I am trying to get it so not have a fee- I've tweaked that but I can't get it solved. I'm not sure how to code it completely just thought it would be a nice feature to add.

There you go, that should work :-) You just forget the ) of

if($ir['user_donatordays']=0)

easy mistake.

Link to comment
Share on other sites

Re: Idea about donator cyber bank

This still isn't working now its not outputting an error message but letting non donators in.... Can't say I didn't try to make it work since I did put a lot of effort into it. I didn't test it till one of the game players mentioned it.

if($ir['donatordays']=0) 
die("Donators only");

doesn't want to seem to work- don't prevent none donators from using it.

Also I renamed the files to prevent further abuse and fedded abusers for 5 days with a notepad warning for them. (yea I have a few bank problems but this one function will make them all work)

Link to comment
Share on other sites

Re: Idea about donator cyber bank

 

I was trying to code a cyber bank for donators without fees and I got this message

Parse error: syntax error, unexpected T_EXIT in /home/mysitedirectory here/public_html/donatorcyber.php on line 7

and heres the lines of code near it

<?php

include "globals.php";


if($ir['user_donatordays']=0)
die("Donators only"); 

print "<h3>Cyber Bank</h3>";
if($ir['cybermoney']>-1)

I am trying to get it so not have a fee- I've tweaked that but I can't get it solved. I'm not sure how to code it completely just thought it would be a nice feature to add.

There you go, that should work :-) You just forget the ) of

if($ir['user_donatordays']=0)

easy mistake.

It isn't really an easy mistake, it's actually logic!

You open a door, and you close it, this is one of the first things you learn in life.

It is actually also the first thing you learn in php, if statements and operators!

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