Jump to content

Recommended Posts

  • 2 weeks later...
Posted

why do i get this error while compiling on Linux? 

vending.c: In function ‘vending_purchasereq’:
vending.c:262: warning: ‘item_name’ may be used uninitialized in this function

  • 2 weeks later...
Posted

This can fix that.

sv_readdb(db_path, "item_vending.txt", ',', 1, 1, ARRAYLENGTH(item_vend), &itemdb_read_vending, i);

 

sorry for lazy copy paste ^_^.

 

if i have time i upload the svn fix.

Posted
already solved, I used the version for ExtendedVendingSystem_11842 rathena master
thx vlw

had this warning when compiling with ExtendedVendingSystem_11842
the version of rathena master is the latest
g6y4.jpg
Posted (edited)

I get this when compiling;

 

 

vending.c: In function âvending_purchasereqâ:
vending.c:321: warning: âitem_nameâ may be used uninitialized in this function

 

Line 321 =

		const char *item_name;

Im using latest rAthena GIT, Any suggestions?


Also;

 

+// Extended Vending system [Lilith]
+700: You do not have enough CashPoint
+701: You do not have enough items
+702: Seller has not enough space in your inventory
+703: Seller can not take all the item
+704: You have selected: %s
+705: You've opened %s's shop. Sale is carried out: %s
+706: Current Currency: %s
+707: %s has bought '%

 

Thats all the V.I.P stuff, so it wont read this.

Edited by Shindu
Posted (edited)

MY FEATURE.conf

// Item ID for Zeny. Set to 0 if you don't want use Zeny.
item_zeny: 20030 << this is the Credits but if i bought the item the credits is still there please help
// Item ID for Cash. Set to 0 if you don't want use Cash.
item_cash: 30590 << This is the Violet Card or 1 Violet Card = 100x Credits and i sell the +10 Sandstorm to 1x Violet Card and i try to buy shop said "YOU DO NOT HAVE ENOUGH CASHPOINT" < (HOW CAN I MAKE THIS COST AN ITEM? )

 

i manually put the patch in my rathena svn 16797

and my problem : 

 

Help me how can i make this work ( i vend a +10 Sandstorm and It Cost 10x Credits [ ID: 20030 ] then the buyer must have 10x credits and if he buy the +10 Sandstorm from the vendor. The vendor will receive the 10x credits and the buyer will get the +10 sandstorm. )

 

 i changed my feature.conf

//--------------------------------------------------------------
// rAthena Feature Configuration File
//--------------------------------------------------------------
// Note 1: Value is a config switch (on/off, yes/no or 1/0)
// Note 2: Value is in percents (100 means 100%)
// Note 3: Value is a bit field. If no description is given,
//         assume unit types (1: Pc, 2: Mob, 4: Pet, 8: Homun)
//--------------------------------------------------------------

// Buying store (Note 1)
// Requires: 2010-04-27aRagexeRE or later
feature.buying_store: on

// Search stores (Note 1)
// Requires: 2010-08-03aRagexeRE or later
feature.search_stores: on

// Extended Vending System [Lilith]
// Enable or disable extended vending system? (Note 1)
extended_vending: yes
// Show currency's name in vending board? (Note 1)
show_item_vending: yes
// Show more info about buying? (Note 1)
ex_vending_info: yes
// Item ID for Zeny. Set to 0 if you don't want use Zeny.
item_zeny: 20030 << this is the Credits but if i bought the item the credits is still there please help
// Item ID for Cash. Set to 0 if you don't want use Cash.
item_cash: 30590 << This is the Violet Card or  1 Violet Card = 100x Credits and i sell the +10 Sandstorm to 1x Violet Card and i try to buy shop said "YOU DO NOT HAVE ENOUGH CASHPOINT" < (HOW CAN I MAKE THIS COST AN ITEM? )
Edited by venomxxvii

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...