tom527103 Posted June 19, 2011 Share Posted June 19, 2011 Parse error: syntax error, unexpected T_STRING in /home/*****/public_html/starterkit.php on line 51 soz for being such a noob guys anyone help me out lol ? <?php /*----------------------------------------------------- -- Made by Akash for CE users -- Free Gift -- Mail <a href="mailto:[email protected]">[email protected]</a> if you need help or converting -----------------------------------------------------*/ if (file_exists('globals.php')) { require('globals.php'); } else { session_start(); require "global_func.php"; if($_SESSION['loggedin']==0) { header("Location: login.php");exit; } $userid=$_SESSION['userid']; require "header.php"; $h = new headers; $h->startheaders(); include "mysql.php"; global $c; $is=mysql_query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid=$userid",$c) or die(mysql_error()); $ir=mysql_fetch_array($is); check_level(); $fm=money_formatter($ir['money']); $lv=date('F j, Y, g:i a',$ir['laston']); $h->userdata($ir,$lv,$fm); $h->menuarea(); } if ($ir['donatorpack']== 0) { print "Welcome to your game name, we hope you enjoy your stay and here is a complimentary pack from us to get you started."; //This is the writing they will get after clicking on the button in explore.php $sql = sprintf(" UPDATE `users` SET `money` = `money` + '%d', `crystals` = `crystals` + '%d', `donatordays` = `donatordays` + '%d', `vip` = `vip` + '%d', `donatorpack` = '%d' WHERE (`userid` = %u)", 10000, 100, 5, 5, 1, $userid); mysql_query($sql); //Edit any of these to credit whatever you want e.g. instead of points, it may be <span class="highlight">crystals</span>. Please DO NOT change the donatorpack=1 as this is part of the mod. <span class="highlight">Changing</span> it may result in users claiming more than one pack. $itmid = 1; //This is the item ID, whatever item you want it to add, just type in the ID here. If you want a random item then replace $itmid = 1; with itmid=rand(1,100), with the numbers being whatever you want. mysql_query("INSERT INTO inventory VALUES('',$itmid,$userid,1)",$c); print" "; //You do not need to change anything here, unless you want more than one of the item to be given. In this case, just edit the 1 at the end to the quantity. event_add($userid,"You were given a complimentary starter kit to begin you off. We hope you enjoy your stay at {$set['game_name']} and please mail <a href="http://viewuser.php?u=1" target="_blank"><b><font color=red>owner of the game</b></font></a> for any help you need.",$c); //This is the event they will receive once they have been credited. Edit the Owner Name to the owner's name and if needed, the writing in the event. } else { die("You have already claimed your starter kit!"); //This simply ensures that the user does not claim more than one pack. } $h->endpage(); Quote Link to comment Share on other sites More sharing options...
Nickson Posted June 19, 2011 Share Posted June 19, 2011 Please check your echo / print quotes, you should learn to use them properly (mod or not) change event_add($userid,"You were given a complimentary starter kit to begin you off. We hope you enjoy your stay at {$set['game_name']} and please mail <a href="http://viewuser.php?u=1" target="_blank"><b><font color=red>owner of the game</b></font></a> for any help you need.",$c); to event_add($userid,"You were given a complimentary starter kit to begin you off. We hope you enjoy your stay at {$set['game_name']} and please mail <a href='viewuser.php?u=1' target='_blank'><b><font color=red>owner of the game</b></font></a> for any help you need.",$c); 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.