Jump to content
MakeWebGames

Recommended Posts

Posted
if($_GET['nextstep'] > 50)
{
print"<center><h3><font color='red'>STALEMATE!</h3>

<h3>You need to train your stats more!</h3>
[url='index.php']> Back[/url]</center>";
$h->endpage();
event_add($odata['userid'],"[url='viewuser.php?u=$userid']{$youdata['username']}[/url] Tried to beat you but stalemated.",$c);
event_add($youdata['userid']," You Tried to beat [url='viewuser.php?u=$userid']{$odata['username']}[/url] but stalemated.",$c);
exit;

 

When I go to view the event and click the link, it shows my viewuser.php, instead of my opponents.

Any ideas?

Posted

Replace

event_add($youdata['userid']," You Tried to beat [url='viewuser.php?u=$userid']{$odata['username']}[/url] but stalemated.",$c);

 

with

 

event_add($youdata['userid']," You Tried to beat [url='viewuser.php?u=".$odata[']{$odata['username']}[/url] but stalemated.",$c);
Posted

Ok, got it printing the user id properly. Thanks!

Next thing. I'm getting 2 events sent to each ID. Any ideas?

if($_GET['nextstep'] > 50)
{
print"<center><h3><font color='red'>STALEMATE!</h3>

<h3>You need to train your stats more!</h3>
[url='index.php']> Back[/url]</center>";
$h->endpage();
event_add($odata['userid'],"[url='viewuser.php?u=".$youdata[']{$youdata['username']}[/url] Tried to beat you but stalemated.",$c);
event_add($youdata['userid']," You Tried to beat [url='viewuser.php?u=".$odata[']{$odata['username']}[/url] but stalemated.",$c);
exit;

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