And that gives me a tag mismatch?
EDIT:
Can I do something like this?
PHP Code:
public Save(id)
{
if(get_pcvar_num(g_pSaveXP) == 0)
{
return PLUGIN_HANDLED;
}
else
{
if(last_save[id] == 0)
{
SaveData(id);
client_print(id, print_chat, "[%s] Your points was saved.", PLUGIN_TAG)
last_save[id] = 1
}
else if(last_save[id] == 1)
{
new Float:time_left;
new Float:current_time;
current_time = get_gametime();
time_left = current_time
if(time_left < SAVE_SPAM)
{
client_print(id, print_chat, "[%s] You must wait %0.1f seconds before saving again.", PLUGIN_TAG, SAVE_SPAM-time_left);
return false;
}
else
{
last_save[id] = 0
}
}
}
return false;
}
__________________