Jump to content
MakeWebGames

Recommended Posts

  • Replies 55
  • Created
  • Last Reply

Top Posters In This Topic

Posted

Re: Delete

 

Wots the code to delete gangs after 0 respect because mine is 0 respect on not deleted gang

And wots the cron for local school

cuz my school days are -48

 

And wot do i do to gt more money then 214768686 in v2 game

Posted

Re: Delete

Add into attackwon.php

if ($ga['gangRESPECT']<=0 && $r['gang'])
{
$db->query("UPDATE users SET gang=0 WHERE gang={$r['gang']}");

$db->query("DELETE FROM gangs WHERE gangRESPECT<='0'");
$db->query("DELETE FROM gangwars WHERE warDECLARER={$ga['gangID']} or warDECLARED={$ga['gangID']}");
}

----

Add into attackbeat.php

if ($ga['gangRESPECT']<=0 && $r['gang'])
{
$db->query("UPDATE users SET gang=0 WHERE gang={$r['gang']}");

$db->query("DELETE FROM gangs WHERE gangRESPECT<='0'");
$db->query("DELETE FROM gangwars WHERE warDECLARER={$ga['gangID']} or warDECLARED={$ga['gangID']}");
}
Posted

Re: Delete

Why you would want to overdo your economy is above me..but fine..

Go into phpMyAdmin -> SQL

 

ALTER TABLE `users` 
CHANGE `money` `money` INT( 12 ) NOT NULL DEFAULT '0',
CHANGE `crystals` `crystals` INT( 12 ) NOT NULL DEFAULT '0', 
CHANGE `bankmoney` `crystals` INT( 12 ) NOT NULL DEFAULT '0', 
CHANGE `cybermoney` `crystals` INT( 12 ) NOT NULL DEFAULT '0'
Posted

Re: Delete

If you want to be able to credit yourself more than 2,147,483,647 then:

Go into your File Manager

Find staff_users.php

In there find the code

function credit_user_submit()
{
global $db,$ir,$c,$h,$userid;
if($ir['user_level'] > 3)
{
die("403");
}
$_POST['money'] = (int) $_POST['money'];
$_POST['crystals'] = (int) $_POST['crystals'];
$db->query("UPDATE users u SET money=money+{$_POST['money']}, crystals=crystals+{$_POST['crystals']} WHERE u.userid={$_POST['user']}");
print "User credited.";
$d=$db->query("SELECT username FROM users WHERE userid='{$_POST['user']}'");
     $un=$db->fetch_single($d);
stafflog_add("Credited $un [{$_POST['user']}] \${$_POST['money']} and/or {$_POST['crystals']} crystals.");
}

 

And replace with:

function credit_user_submit()
{
global $db,$ir,$c,$h,$userid;
if($ir['user_level'] > 3)
{
die("403");
}
$_POST['money'] = (float) $_POST['money'];
$_POST['crystals'] = (float) $_POST['crystals'];
$db->query("UPDATE users u SET money=money+{$_POST['money']}, crystals=crystals+{$_POST['crystals']} WHERE u.userid={$_POST['user']}");
print "User credited.";
$d=$db->query("SELECT username FROM users WHERE userid='{$_POST['user']}'");
     $un=$db->fetch_single($d);
stafflog_add("Credited $un [{$_POST['user']}] \${$_POST['money']} and/or {$_POST['crystals']} crystals.");
}
Posted

Re: Delete

For the school...The code should already be there..

cron_day.php (about half way down)

 


$q=$db->query("SELECT * FROM users WHERE cdays=0 AND course > 0");
while($r=$db->fetch_row($q))
{
$cd=$db->query("SELECT * FROM courses WHERE crID={$r['course']}");
$coud=$db->fetch_row($cd);
$userid=$r['userid'];
$db->query("INSERT INTO coursesdone VALUES({$r['userid']},{$r['course']})");
Posted

Re: Delete

ALTER TABLE `users`

CHANGE `crystals` `crystals` INT( 12 ) NOT NULL DEFAULT '0'

ALTER TABLE `userstats`

CHANGE `strength` `strength` INT( 12 )NOT NULL DEFAULT '0',

CHANGE `IQ` `IQ` INT( 12 )NOT NULL DEFAULT '0',

CHANGE `agility` `agility` INT( 12 )NOT NULL DEFAULT '0',

CHANGE `guard` `guard` INT( 12 )NOT NULL DEFAULT '0',

CHANGE `labour` `labour` INT( 12 )NOT NULL DEFAULT '0',

Posted

Re: Delete

klikoka this was rong

ALTER TABLE `userstats`

CHANGE `strength` `strength` INT( 12 )NOT NULL DEFAULT '0',

CHANGE `IQ` `IQ` INT( 12 )NOT NULL DEFAULT '0',

CHANGE `agility` `agility` INT( 12 )NOT NULL DEFAULT '0',

CHANGE `guard` `guard` INT( 12 )NOT NULL DEFAULT '0',

CHANGE `labour` `labour` INT( 12 )NOT NULL DEFAULT '0',

the right one is

ALTER TABLE `userstats`

CHANGE `strength` `strength` INT( 12 )NOT NULL DEFAULT '0'

CHANGE `IQ` `IQ` INT( 12 )NOT NULL DEFAULT '0'

CHANGE `agility` `agility` INT( 12 )NOT NULL DEFAULT '0'

CHANGE `guard` `guard` INT( 12 )NOT NULL DEFAULT '0'

CHANGE `labour` `labour` INT( 12 )NOT NULL DEFAULT '0'

Just by taking , that of at the end thanks for trying

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