[Release] WebShop For 97d+99i Update 4

При тоя уебмагазин за 97д+99и имам един проблем като се прати смс дава кредитите например 1000 можеш да ги ползваш обаче в самия уебмагазин не показва кредитите ти просто е празно мястото
Logged in as: *****
My current credits:
 
Verifying required extensions: OK
Incorrect syntax near the keyword 'database'.

How fix?
 
Download Link: Click Here

Credits: Savoy & Mephisto

can you provide us the php code for limit resets?
for example if my server is maximum 20reset then users cant buy from webshop more than 20reset..
so the php file has to check for reset maximum limit..forexample 1 user 15 reset will buy 6 resets but the maximum is 20..so php will check if resets + given number to buy = more than 20 then give an error..
or we can do it from sql query like
UPDATE Character
SET resets = ('20')
Where resets>20
but is better from php if someone knows the code...something like if ($resets + $buyresets = >20 then dont do it :p
or if we add on savoy webshop resets.php

If [Resets]+".$increase_resets." >20 then give an error..

anyway someone who knows can fix that :p
 
Last edited:
can you provide us the php code for limit resets?
for example if my server is maximum 20reset then users cant buy from webshop more than 20reset..
so the php file has to check for reset maximum limit..forexample 1 user 15 reset will buy 6 resets but the maximum is 20..so php will check if resets + given number to buy = more than 20 then give an error..
or we can do it from sql query like
UPDATE Character
SET resets = ('20')
Where resets>20
but is better from php if someone knows the code...something like if ($resets + $buyresets = >20 then dont do it :p
or if we add on savoy webshop resets.php

If [Resets]+".$increase_resets." >20 then give an error..

anyway someone who knows can fix that :p
Not tested.
 

Attachments

  • resets.rar
    1.6 KB · Views: 26
Not tested.

its ok i will check/test it w8
edit: works great for the time thank you man..you are good.

Of course everyone can add their max reset limit by changing the value 20 on these lines
case $currentresets[0] + $increase_resets > 20:
case $currentresets[0] >= 20:
$legtitle = "Error";
$content = "You have reached the limit of 20 resets.";

also if someone wants 350 level after resets then replace this
update [Character] set [Resets]=[Resets]+".$increase_resets." where [Name]='".secure($_POST['character'])."';") or die("Couldn't Complete the transaction");

With this
update [Character] set [clevel]='350', [Resets]=[Resets]+".$increase_resets." where [Name]='".secure($_POST['character'])."';") or die("Couldn't Complete the transaction");
 
Last edited:
The items magus is bugs need fixed darkmaster
 
can you provide us the php code for limit resets?
for example if my server is maximum 20reset then users cant buy from webshop more than 20reset..
so the php file has to check for reset maximum limit..forexample 1 user 15 reset will buy 6 resets but the maximum is 20..so php will check if resets + given number to buy = more than 20 then give an error..
or we can do it from sql query like
UPDATE Character
SET resets = ('20')
Where resets>20
but is better from php if someone knows the code...something like if ($resets + $buyresets = >20 then dont do it :p
or if we add on savoy webshop resets.php

If [Resets]+".$increase_resets." >20 then give an error..

anyway someone who knows can fix that :p

this works DarkMaster ? and what is this plss more info