AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Compiler Error: Undefind Symbol "Save" (https://forums.alliedmods.net/showthread.php?t=229835)

PoLiCe 11-15-2013 14:36

Compiler Error: Undefind Symbol "Save"
 
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



fysiks 11-15-2013 14:41

Re: Compiler Error: Undefind Symbol "Save"
 
The error is self-explanatory. "Save" is not defined. Define it.

PoLiCe 11-15-2013 15:09

Re: Compiler Error: Undefind Symbol "Save"
 
Quote:

Originally Posted by fysiks (Post 2061254)
The error is self-explanatory. "Save" is not defined. Define it.

Thanks, got it :)


All times are GMT -4. The time now is 23:19.

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