Godhand Posted September 20, 2007 Share Posted September 20, 2007 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. Quote Link to comment Share on other sites More sharing options...
General Doom Posted September 20, 2007 Share Posted September 20, 2007 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. Quote Link to comment Share on other sites More sharing options...
Isomerizer Posted September 20, 2007 Share Posted September 20, 2007 Re: Idea about donator cyber bank Lol Godhand... This makes me laugh, Yesterday Scarlet posted this http://criminalexistence.com/forum/inde ... ic=14173.0 Soming up that all coding / DBS help shouldnt be here. And literally not even 1 day after posted you post this asking for help..... :| Quote Link to comment Share on other sites More sharing options...
Godhand Posted September 20, 2007 Author Share Posted September 20, 2007 Re: Idea about donator cyber bank ok so I didn't read that post sorry. I just don't have time to keep up with everything to read "every single" thread on a forum. Quote Link to comment Share on other sites More sharing options...
Godhand Posted September 24, 2007 Author Share Posted September 24, 2007 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) Quote Link to comment Share on other sites More sharing options...
Decepti0n Posted September 24, 2007 Share Posted September 24, 2007 Re: Idea about donator cyber bank make it two equals signs Quote Link to comment Share on other sites More sharing options...
hamster01 Posted September 24, 2007 Share Posted September 24, 2007 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! Quote Link to comment Share on other sites More sharing options...
Godhand Posted September 24, 2007 Author Share Posted September 24, 2007 Re: Idea about donator cyber bank make it two equals signs Thanks I just checked and it worked. Didn't think it'd require ==0 instead of =0 though.... Then again what do I know heh. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.