Agon Posted October 13, 2009 Posted October 13, 2009 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? Quote
Arek Posted October 14, 2009 Posted October 14, 2009 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); Quote
Agon Posted October 14, 2009 Author Posted October 14, 2009 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; Quote
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.