• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

AAC Storage Myaac

El Man

«لَا إِلَٰهَ إِلَّا ٱللَّٰهُ»
Joined
Mar 23, 2013
Messages
161
Reaction score
33
I have problem in myaac character.php i add this code
PHP:
  $storageData = $SQL->query('SELECT `key`, `value` FROM `player_storage` WHERE `player_id` = ' . $player->getID() . ' AND `key` = 65118')->fetch();
        if ($storageData) {
            $storageValue = (int) $storageData['value'];
        }
        $main_content .= '<tr bgcolor="' . $bgcolor . '"><td><span style="font-weight:bold;color:green">ANTI BOT CODE IS </span> : </td><span style="font-weight:bold;color:red">'. ($storageData['value']) .'</td></tr>';
the storage not appear in website .. should relogin character to appear storage


anyhelp.?
Post automatically merged:

Example .. i give player storage value ,100 and its should appear in website value = 100
1667408791885.png

still not appear before relogin.
1667408851218.png

after relogin its work.
1667408926463.png


all i want the storage value appear in website without player relogin.
 
Last edited:
Solution
This is how storage in players are done: they are saved after logout, and loaded on login.

You can also save player anytime you wish, by using in lua:

doPlayerSave(cid)

or

player:save()
for tfs 1.3+

You can save after doPlayerSetStorageValue().
This is how storage in players are done: they are saved after logout, and loaded on login.

You can also save player anytime you wish, by using in lua:

doPlayerSave(cid)

or

player:save()
for tfs 1.3+

You can save after doPlayerSetStorageValue().
 
Solution
This is how storage in players are done: they are saved after logout, and loaded on login.

You can also save player anytime you wish, by using in lua:

doPlayerSave(cid)

or

player:save()
for tfs 1.3+

You can save after doPlayerSetStorageValue().
Thanks working fine
 
Back
Top