Jump to content
MakeWebGames

No attacking level 1


gurpreet

Recommended Posts

Ok so I'm a noob at coding, but I'm tryna get better, please correct my errors and tell me what they are. I'm trying to make it so people can't attack level 1's. I know this is basics for most of you, but you must have gone through this.

 

else if($odata['level'] ==1)
{
print "<center><font size=5>You cannot attack a level 1 as they won't be able to do much back to you.</font></center>";
$h->endpage();
exit;
}

 

I used the $oadata as Alabamahit said $ir is for you, and $oadata is for them.

Link to comment
Share on other sites

Re: No attacking level 1

Oh wow I can code something... :mrgreen:

How would the <3 days thing work?

 

else if($odata['daysold'] <3)
{
print "<center><font size=5>You cannot attack someone who has been playing Game Name for less than 3 days as they won't be able to do much back to you.</font></center>";
$h->endpage();
exit;
}

 

Also just wondering, as i took a guess, the 'daysold 'level' and stuff, is that a column in the Mysql DB?

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