addpoint функция
This commit is contained in:
parent
82c6ec2370
commit
c1bc4bef3d
@ -25,7 +25,13 @@ function points($name) {
|
|||||||
$temp = $db["points"][$name];
|
$temp = $db["points"][$name];
|
||||||
return $temp;
|
return $temp;
|
||||||
}
|
}
|
||||||
function addpoint($name, $point, $reason="") {}
|
function addpoint($name, $point, $reason="") {
|
||||||
|
chechtimebanpoint();
|
||||||
|
$db = loaddb();
|
||||||
|
$db["points"][$name] += $point;
|
||||||
|
$db["logs"][$name][] = "Add " . $point . "points: " . $reason;
|
||||||
|
savedb($db);
|
||||||
|
}
|
||||||
function rmpoint($name, $point, $reason="", $force=true) {}
|
function rmpoint($name, $point, $reason="", $force=true) {}
|
||||||
function paypoint($byname, $toname, $point, $reason="") {}
|
function paypoint($byname, $toname, $point, $reason="") {}
|
||||||
function logpoint($name) {}
|
function logpoint($name) {}
|
||||||
|
Reference in New Issue
Block a user