• 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!

[Modern ACC] Simple shop system

Raggaer

Godly Member
Joined
Jul 25, 2012
Messages
1,557
Solutions
8
Reaction score
957
Location
Spain
Hello, I made this few days ago, decide to release it, its not pro stuff but for me it works

Note* Im not pro coder so this code might look shit ( or be )

- Screenshots -

Untitled-2.jpg
index/p/v/shopping

Untitled-4.jpg
index/p/v/buy

Untitled-6.jpg
index/p/v/shopadd

- Install -

Download attachments
Drag all files into your pages folder
Execute this query
Add the buy.png into your public/images/items folder
Code:
CREATE TABLE IF NOT EXISTS `shopping` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(20) NOT NULL,
  `info` text NOT NULL,
  `itemid` int(11) NOT NULL,
  `count` int(11) NOT NULL,
  `cost` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1;

We are done

View attachment Modern Shop.rar

Hope you like it..
 
well might be, you can test it and if you found one post it
 
Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42S22]: Column not found: 1054 Unknown column 'xupa' in 'where clause'' in C:\UniServer\www\system\pages\shopping.php:15 Stack trace: #0 C:\UniServer\www\system\pages\shopping.php(15): PDO->query('SELECT premium_...') #1 C:\UniServer\www\system\application\controllers\p.php(13): include('C:\UniServer\ww...') #2 [internal function]: p->v('shopping') #3 C:\UniServer\www\system\codeigniter\CodeIgniter.php(236): call_user_func_array(Array, Array) #4 C:\UniServer\www\index.php(165): require_once('C:\UniServer\ww...') #5 {main} thrown in C:\UniServer\www\system\pages\shopping.php on line 15
 
my script is the same of yours the problem is this erros appears when i see shop with god normal players can see it well also when i try to add item the same erros appears
 
Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42S22]: Column not found: 1054 Unknown column 'davinhow' in 'where clause'' in C:\xampp\htdocs\system\pages\shopping.php:15 Stack trace: #0 C:\xampp\htdocs\system\pages\shopping.php(15): PDO->query('SELECT premium_...') #1 C:\xampp\htdocs\system\application\controllers\p.php(13): include('C:\xampp\htdocs...') #2 [internal function]: p->v('shopping') #3 C:\xampp\htdocs\system\codeigniter\CodeIgniter.php(236): call_user_func_array(Array, Array) #4 C:\xampp\htdocs\index.php(165): require_once('C:\xampp\htdocs...') #5 {main} thrown in C:\xampp\htdocs\system\pages\shopping.php on line 15
 
this script players can get free points donw know why but they can

- - - Updated - - -

also when try to buy anything for shop this error appears

This web page has a redirect loop
 
well this is a shop system so you cant get points its not a buypoints, also this was one of my first scripts.
 
Back
Top