Raised This Month: $ Target: $400
 0% 

Small help Edit Plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
manafi
Senior Member
Join Date: Jun 2009
Old 07-24-2010 , 12:49   Re: Small help Edit Plugin
Reply With Quote #1

Yes,i want to save manually.
manafi is offline
nikhilgupta345
Veteran Member
Join Date: Aug 2009
Location: Virginia
Old 07-24-2010 , 12:55   Re: Small help Edit Plugin
Reply With Quote #2

He means auto save when player leaves? And then they can also save on their own?
nikhilgupta345 is offline
Send a message via ICQ to nikhilgupta345 Send a message via Yahoo to nikhilgupta345
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 07-24-2010 , 13:14   Re: Small help Edit Plugin
Reply With Quote #3

comment the line in client_disconnect like bugsy said and
add this to plugin_init()

PHP Code:
register_clcmd("say /save""save_data"); 
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
manafi
Senior Member
Join Date: Jun 2009
Old 07-24-2010 , 14:31   Re: Small help Edit Plugin
Reply With Quote #4

I try this but i have some errors if i try compile =((

you can make this and uplode here?)
manafi is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 07-24-2010 , 15:10   Re: Small help Edit Plugin
Reply With Quote #5

Also, make sure save_data is public if youre using clcmd to call it.
__________________
Bugsy is offline
manafi
Senior Member
Join Date: Jun 2009
Old 07-25-2010 , 03:59   Re: Small help Edit Plugin
Reply With Quote #6

so i make this,but don't work, compile errors =(
Attached Files
File Type: sma Get Plugin or Get Source (zp_bank_name_nodonate.sma - 154 views - 8.0 KB)
manafi is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 07-25-2010 , 05:25   Re: Small help Edit Plugin
Reply With Quote #7

change
PHP Code:
 save_dataregister_clcmd("say /save""save_data"); 
to
PHP Code:
register_clcmd("say /save""save_data"); 
The rest looks good.
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
manafi
Senior Member
Join Date: Jun 2009
Old 07-25-2010 , 05:47   Re: Small help Edit Plugin
Reply With Quote #8

2 errors
zm_bank_name_nodonate.sma(42) Warning 217: Loose indentation
zm_bank_name_nodonate.sma(44) Warning 217: Loose indentation
manafi is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 07-25-2010 , 05:54   Re: Small help Edit Plugin
Reply With Quote #9

use only spaces or tabs to indent your code
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
manafi
Senior Member
Join Date: Jun 2009
Old 07-25-2010 , 08:02   Re: Small help Edit Plugin
Reply With Quote #10

thx now all work fine
====Edit=====
I found 1 bag....
If i deposit AP in BANK ,save it,then i withdraw 100 ap, use this AP, make reconnect and i again have 100AP in bank = Unlimited AP, how fix it?

Last edited by manafi; 07-25-2010 at 08:11.
manafi 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 00:10.


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