Raised This Month: $ Target: $400
 0% 

i need help with xp code


Post New Thread Reply   
 
Thread Tools Display Modes
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
Bilal Pro
Senior Member
Join Date: Mar 2012
Location: Holland
Old 04-18-2012 , 09:10   Re: i need help with xp code
Reply With Quote #2

Show us ur errors?
__________________
  • Point System with rank titles for sale [X] [100% private]
  • VIP Menu for sale [X] [100% private]
  • HnS shop more features for sale [X] [100% private]
Contact: Bilalzaandam1234, on steam if you are interested.
Bilal Pro is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 04-18-2012 , 12:50   Re: i need help with xp code
Reply With Quote #3

Show your full code + errors.
__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
Reply



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