Raised This Month: $51 Target: $400
 12% 

Subplugin Submission ZP Bank


Post New Thread Reply   
 
Thread Tools Display Modes
lionel_lo
Member
Join Date: Aug 2008
Old 11-14-2008 , 23:12   Re: ZP Bank
Reply With Quote #21

Quote:
Originally Posted by G-Dog View Post
ya replace the client_disconnect function
Code:
public client_disconnect(id)
    if ( bankstorage[id] > 0 ) save_data(id);
with this one
Code:
public client_disconnect(id) {
    store_cash(id, -1);
 
    if ( bankstorage[id] > 0 ) save_data(id);
}
and make sure that you list the bank plugin before zombieplague plugin in plugins.ini/zombie-plugins.ini to ensure that it'll read the ammo packs before zombieplague flushes the data.

End-round auto-save too?
And
Can auto-load when user connecting?
THX a lot!!

Last edited by lionel_lo; 11-14-2008 at 23:57.
lionel_lo is offline
shadowski
Senior Member
Join Date: Feb 2007
Old 11-15-2008 , 05:00   Re: ZP Bank
Reply With Quote #22

damn i still get bad load
shadowski is offline
lionel_lo
Member
Join Date: Aug 2008
Old 11-16-2008 , 03:09   Re: ZP Bank
Reply With Quote #23

I got this error mesg.
PHP Code:
L 11/16/2008 16:01:08: [MySQLInvalid DBI handle 0
L 11
/16/2008 16:01:08: [AMXXRun time error 10 (plugin "zp_bank_sql.amxx") (native "dbi_close") - debug not enabled!
L 11/16/2008 16:01:08: [AMXXTo enable debug modeadd "debug" after the plugin name in plugins.ini (without quotes). 
and then server crash!!!

how to fix it? thx
lionel_lo is offline
Fry!
Veteran Member
Join Date: Apr 2008
Location: Latvia
Old 11-16-2008 , 03:12   Re: ZP Bank
Reply With Quote #24

like this : zp_bank_sql.amxx debug
__________________
Quote:
Originally Posted by wisam187
why all the great scriptors..... always.... leave and let their works go into oblivion ???
i miss your way in making outstanding plugins...
this forum needs lots of the likes of you..... and less of the idiots that spread right now.
Fry! is offline
lionel_lo
Member
Join Date: Aug 2008
Old 11-16-2008 , 06:38   Re: ZP Bank
Reply With Quote #25

PHP Code:
[AMXXDisplaying debug trace (plugin "zp_bank_sql.amxx")
L 11/16/2008 19:26:29: [AMXXRun time error 10native error (native "dbi_close")
L 11/16/2008 19:26:29: [AMXX]    [0zp_bank_sql.sma::plugin_end (line 103
I use zp_bank_sql.amxx debug
and still got error mesg. and server still crash

103 line is "dbi_close(gMySQL);"
PHP Code:
public plugin_end() {
#if defined SAVE_NVAULT
 
nvault_close(gvault);
#else
 
dbi_close(gMySQL);
#endif

how to fit it? thx

Last edited by lionel_lo; 11-16-2008 at 06:45.
lionel_lo is offline
drumzplaya13
Senior Member
Join Date: Feb 2008
Location: TEXAS
Old 11-28-2008 , 22:08   Re: ZP Bank
Reply With Quote #26

i installed it correctly and everything but how do i know if its working or not and can you only deposit when your a zombie or human or both? there isnt like a message or anything saying like you have now deposited/withdrew ammo packs..

i say deposit 5 and it doesnt do ANYTHING. i dont see my ammo packs decrease to 5 when i have 10 ammo packs or 0 when i have 5 ammo packs... someone want to fix this?
__________________
Think Positive - Stay Positive

Last edited by drumzplaya13; 11-28-2008 at 22:14.
drumzplaya13 is offline
G-Dog
Senior Member
Join Date: Dec 2005
Location: Thunderstorm Central
Old 11-29-2008 , 03:44   Re: ZP Bank
Reply With Quote #27

First off are you using the original or the sql version? The reason I stated sql was untested is cause I don't have an sql server to test with. Second are you sure the plugin is loaded? Is it in the list when you type amxx plugins in server console? Third are you sure you didn't change zp_bank cvar to 0?
__________________
If at first you don't succeed, then skydiving isn't for you.
G-Dog is offline
Send a message via AIM to G-Dog
drumzplaya13
Senior Member
Join Date: Feb 2008
Location: TEXAS
Old 11-29-2008 , 05:00   Re: ZP Bank
Reply With Quote #28

Quote:
Originally Posted by G-Dog View Post
First off are you using the original or the sql version? The reason I stated sql was untested is cause I don't have an sql server to test with. Second are you sure the plugin is loaded? Is it in the list when you type amxx plugins in server console? Third are you sure you didn't change zp_bank cvar to 0?
not using the sql version, using the other one.

yes, im sure the plugin loaded, but now i see my server is crashed, i restarted it and it crashed on start up, the error message was this....

Code:
L 11/29/2008 - 01:57:10: Info (map "de_torn_cz") (file "addons/amxmodx/logs/error_20081129.log")
L 11/29/2008 - 01:57:10: [AMXX] Invalid Plugin (plugin "zp_bank.amxx")
i have the .amxx and .sma files in the correct folders, and the .amxx in the plugins.ini so it should work... but it doesnt.

and yeah im sure didnt change the cvar to 0...
__________________
Think Positive - Stay Positive
drumzplaya13 is offline
G-Dog
Senior Member
Join Date: Dec 2005
Location: Thunderstorm Central
Old 11-29-2008 , 08:04   Re: ZP Bank
Reply With Quote #29

did you use the get plugin link next to get source or did you compile the source locally for your version of amxx?
__________________
If at first you don't succeed, then skydiving isn't for you.
G-Dog is offline
Send a message via AIM to G-Dog
drumzplaya13
Senior Member
Join Date: Feb 2008
Location: TEXAS
Old 11-29-2008 , 16:58   Re: ZP Bank
Reply With Quote #30

um i used what you gave, what i was going to try next was to get the .sma and compile it on the web and see if it would let me use it.
__________________
Think Positive - Stay Positive
drumzplaya13 is offline
Reply



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 12:06.


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