Raised This Month: $ Target: $400
 0% 

i need help with xp code


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Zivve
New Member
Join Date: Feb 2010
Old 04-18-2012 , 06:59   i need help with xp code
Reply With Quote #1

actionXP(id, OverrideTimer)
{
//get game time
new Float:fTime = halflife_time();

if (fTime >= gfXPNextUse[id] || OverrideTimer)
{
if ( cs_get_user_team ( id ) == CS_TEAM_T )
{
new xp_give = get_pcvar_num(bm_xp_givexp)
hnsxp_add_user_xp(id, xp_give);
new szName[ 33 ];
get_user_name( id, szName, 32 );
ColorChat(0, GREEN, "%s^x03 [ %s ]^x01 is now got^x03 [%d]^x01 XP!", gszPrefix, szName, xp_give);
gfXPNextUse[id] = fTime + get_cvar_float("bm_xpcooldown");
}
}
else
{
set_hudmessage(gHudRed, gHudGreen, gHudBlue, gfTextX, gfTextY, gHudEffects, gfHudFxTime, gfHudHoldTime, gfHudFadeInTime, gfHudFadeOutTime, gHudChannel);
if( get_cvar_float("bm_xpcooldown") >= 600.0 )
show_hudmessage(id, "XP next use: new round", gfXPNextUse[id] - fTime);

else show_hudmessage(id, "XP next use: %.1f", gfXPNextUse[id] - fTime);
}
}


but i got error

Blockmaker_v4.01.sma(1297) : error 017: undefined symbol "ActionXp"
blockmaker_v4.01.sma(5892) : error 040 duplicate "case" label (value 88 )
blockmaker_v4.01.sma(6050) : warning 203: symbol is never used: "actionXP

Last edited by Zivve; 04-19-2012 at 09:02.
Zivve is offline
 



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 07:49.


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