Raised This Month: $ Target: $400
 0% 

Problem whit Plugin Api


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Stylaa
Senior Member
Join Date: Oct 2009
Location: Flensburg, Germany
Old 01-17-2011 , 17:42   Re: Problem whit Plugin Api
Reply With Quote #7

First Thanks for this nice example.

i got one more Problem the Price of the Item always Returns -1

My Code :

Plugin Init
PHP Code:
//               Item Name        Price        Handler            Plugin ID -1 = Lokal
AddShopItem"Gay or Not?",   15,         "gay_check",            -); 
AddShopItem Func

PHP Code:
AddShopItemszItemName[ ], iCostszHandler[ ], iPlugin )

    new 
eItemDataItemData ];
    
copyeItemDataItemName ], charsmaxeItemDataItemName ] ), szItemName );
    
eItemDataItemCost ] = iCost;
    
eItemDataItemFuncID ] = get_func_idszHandleriPlugin );
    
eItemDataItemPlugin ] = iPlugin;
    
    
// Here in Testing Print eItemData[ ItemCost ] also returns   -1

    
ArrayPushArrayg_aItemseItemData );
    
g_iTotalItems++;
    return ( 
g_iTotalItems );

Best Regards
__________________

Some People brings Happynes by Coming
Some by Going
Stylaa is offline
Send a message via ICQ to Stylaa
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:12.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode