Raised This Month: $ Target: $400
 0% 

Compiler Error: Undefind Symbol "Save"


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
PoLiCe
Senior Member
Join Date: Apr 2013
Location: Xen™
Old 11-15-2013 , 14:36   Compiler Error: Undefind Symbol "Save"
Reply With Quote #1

Hi,
I have this code which is an Add-On for Played Time plugin.
i don't know what's wrong with it :/ ..
when i compile it i get two errors: Undefind symbol "Save".
PHP Code:
#include <amxmodx>
#include <amxmisc>
 
new gTime33 ]; // Variable that holds total time of player 
new g_tempid// Played Id of target 
 
public plugin_init() 

    
register_clcmd"say /donate""CmdDonate" ); //Opens the menu 
    
register_clcmd"pt_donate""CmdDonateTime" ); 

public 
CmdDonateTimeidlevelcid )  
{  
    new 
amount21 ];  
 
    
read_argv1amountcharsmaxamount )  );  
    new 
szSenderName32 ], szReceiverName32 ]; 
    
get_user_nameidszSenderNamecharsmaxszSenderName ) );  
    
get_user_nameg_tempidszReceiverNamecharsmaxszReceiverName ) ); 
 
    new 
timenum str_to_numamount );  
 
    if( 
timenum > ( gTimeid ] / 60 ) ) 
    { 
        
client_printidprint_chat"* You don't have enough time to give." ); 
        return 
PLUGIN_HANDLED
    } 
 
    
gTimeg_tempid ] += timenum 60
    
gTimeid ] -= timenum 60
 
    
client_printg_tempidprint_chat"* You received %i minutes from %s"timenumszSenderName );  
    
client_printidprint_chat"* You gave %i minutes to %s leaving you %i minutes"timenumszReceiverName, ( gTimeid ] / 60 ) ); 
 
    
Saveid 
    
Saveg_tempid 
 
    return 
PLUGIN_CONTINUE;  

public 
CmdDonateid 

    new 
frm125 ]; 
    
formatfrmcharsmaxfrm ), "\yDonate time to player ( Your time in minutes: \w%i )", ( gTimeid ] / 60 ) ); 
 
    new 
menu menu_createfrm"menu_handler" ); 
 
    new 
players32 ], pnumtempid
 
    new 
szName32 ], szTempid10 ]; 
 
    
get_playersplayerspnum ); 
 
    for( new 
ipnumi++ ) 
    { 
        
tempid players]; 
 
        
get_user_nametempidszNamecharsmaxszName ) ); 
        
num_to_strtempidszTempidcharsmaxszTempid ) ); 
 
        
menu_additemmenuszNameszTempid); 
 
    } 
    
menu_displayidmenu); 

public 
menu_handleridmenuitem 

    if( 
item == MENU_EXIT 
    { 
        
menu_destroymenu ); 
        return 
PLUGIN_HANDLED
    } 
 
    new 
data], szName64 ]; 
    new 
accesscallback
    
menu_item_getinfomenuitemaccessdatacharsmaxdata ), szNamecharsmaxszName ), callback ); 
 
    
g_tempid str_to_numdata ); 
 
    new 
szTargetName32 ]; 
    
get_user_nameg_tempidszTargetNamecharsmaxszTargetName ) ); 
 
    
client_printidprint_chat"* Write amount you want to donate to %s"szTargetName ); 
 
    
client_cmdid"messagemode pt_donate" ); 
 
    
menu_destroymenu ); 
    return 
PLUGIN_HANDLED

__________________

Last edited by PoLiCe; 11-15-2013 at 14:37.
PoLiCe is offline
Send a message via MSN to PoLiCe Send a message via Skype™ to PoLiCe
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 11-15-2013 , 14:41   Re: Compiler Error: Undefind Symbol "Save"
Reply With Quote #2

The error is self-explanatory. "Save" is not defined. Define it.
__________________
fysiks is online now
PoLiCe
Senior Member
Join Date: Apr 2013
Location: Xen™
Old 11-15-2013 , 15:09   Re: Compiler Error: Undefind Symbol "Save"
Reply With Quote #3

Quote:
Originally Posted by fysiks View Post
The error is self-explanatory. "Save" is not defined. Define it.
Thanks, got it
__________________
PoLiCe is offline
Send a message via MSN to PoLiCe Send a message via Skype™ to PoLiCe
Reply


Thread Tools
Display Modes

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 23:19.


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