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

What do i need to add items in shopsystem?

olaajnus

New Member
Joined
Jan 2, 2009
Messages
30
Reaction score
0
i get this error when i trying to do it.

Fel
SQL-fråga:

INSERT INTO `z_shop_offer` ( `id` , `points` , `itemid1` , `count1` , `itemid2` , `count2` , `offer_type` , `offer_description` , `offer_name` , `level` , `pid` )
VALUES (

NULL , 10, 0, 0, 0, 0, 'redskull', 'Remove Red Skull!', 'Remove Red Skull', 0, 0
), (
NULL , 10, 2160, 50, 0, 0, 'itemlogout', 'Crystal Coin', 'itemlogout', 0, 10
), (
NULL , 2, 0, 0, 0, 0, 'changename', 'Change Name', 'changename', 0, 0
)

MySQL sa:

#1054 - Unknown column 'level' in 'field list'
 
You could either use this query instead:
PHP:
INSERT INTO `z_shop_offer` ( `id` , `points` , `itemid1` , `count1` , `itemid2` , `count2` , `offer_type` , `offer_description` , `offer_name` , `pid` )
VALUES (

NULL , 10, 0, 0, 0, 0, 'redskull', 'Remove Red Skull!', 'Remove Red Skull', 0),(
NULL , 10, 2160, 50, 0, 0, 'itemlogout', 'Crystal Coin', 'itemlogout', 10), (
NULL , 2, 0, 0, 0, 0, 'changename', 'Change Name', 'changename', 0
)
.. or execute this query first:
PHP:
ALTER TABLE `z_shop_offer` ADD `level` INT( 11 ) NOT NULL DEFAULT '0';
 
Back
Top