I said post the whole
FUNCTION not the whole code...
PHP Code:
public ShowLevel(id)
{
ColorChat(0, GREEN, "^x03Level ^x04- ^x01[ ^x03%i ^x04/ ^x03 19 ^x01] ^x03XP ^x04- ^x01[ ^x03%i ^x01] ^x03Rank ^x04- ^x01[ ^x03%s ^x01]",PlayerLevel[id],PlayerXP[id],RANKS[PlayerRank[id]]);
return PLUGIN_HANDLED;
}
PlayerXP[attacker] += get_pcvar_num(XP_Kill)
set_hudmessage(0, 255, 50, 0.50, 0.33, 1, 2.0, 2.0)
show_hudmessage(0, "+%d XP For Kill", get_pcvar_num(XP_Kill))
}
public client_connect(id)
{
if(get_pcvar_num(SaveXP) == 1)
{
LoadData(id)
}
}
as far as I can see your code isn't in a function, no wonder you get that "already defined" error...
also use the damn indentation ! otherwise you SURELY don't understand anything from your own code even if you happen to know what everything does... this means, for short, order your code ! use spaces and tabs... and don't get greedy on them because they won't affect the plugin's performance OR compile time, that only helps the coders reading the code !
__________________