|
|
PHP Source code |
1 2 3 4 5 6 7 8 9 10 11 |
else // Doesn't exists we can create the account
{
$pass=md5(strip($_POST["PASSWORD"]));
$sql="INSERT INTO PLAYERS(USERNAME,PASSWORD,EMAIL,AUTHORIZED) VALUES(".
$db->qstr(strip($_POST["USERNAME"])).",".$db->qstr($pass).",".
$db->qstr(strip($_POST["EMAIL"])).",'Y')";
echo $sql;
$db->Execute($sql);
setcookie("ZAPLOGIN",$db->getid()."/".md5($pass.$_SERVER["REMOTE_ADDR"]));
header("Location: world.php");
return;
|
|
|
PHP Source code |
1 |
set_stat("MYSTAT",100);
|
Stats are handled for you. So you should just do something like:
![]()
PHP Source code
1set_stat("MYSTAT",100);
and that should be set.
BTW before using a stat make sure it is defined in the admin panel or directly in the table STATS
the function set_stat will change the value in memory and at the end of the page the function flush_stats will be called and actually save the new values.
This post has been edited 1 times, last edit by "wrx" (Aug 2nd 2010, 7:48pm)
Quoted
Notice: Undefined index: energy in /zapengine/libs/misc_util.php on line 248
Notice: Undefined index: SHORT in /zapengine/modules/interface/quickstats/quickstats.php on line 5
:44
Notice: Undefined index: money in /zapengine/libs/misc_util.php on line 248
Quoted
Notice: Undefined index: energy in /zapengine/libs/misc_util.php on line 248
i would like to see it as I was unable to drill it down myself)This post has been edited 1 times, last edit by "wrx" (Aug 5th 2010, 6:13pm)
iAd-System 1.1.3, developed by Nerd Almighty