Talk:Adding an experience system

From Valve Developer Community
Jump to navigation Jump to search

There are some typos in this tutorial, overall very great and i could imagine how hard it was to make. if you follow the text right off you will get min 92 errors. plz if you got the time look over it again, an example is that it says "chl2mp_player.h" when it should be "C_hl2mp_player.h" and on one point you say put the code in hl2map_player.h when you mean C_hl2mp_player.h. its great otherwise, easy to fix for an average coder. Unsigned comment added by Fabbecool (talkcontribs) Always sign your posts with four tildes (~~~~)

Lines not working

Lines ClientPrint( this, HUD_PRINTTALK, "You have reached level %i\n", m_iLevel ); // write it on their screenUTIL_ClientPrintAll( HUD_PRINTCONSOLE, "%s has reached level %i\n", GetPlayerName(), m_iLevel ); // write it in everyone's console

don't work.

I used even m_iLevel.M_iValue unsuccessfuly. The only working thing is (char*)m_iLevel.M_iValue. but i don't know what effects could have.

Also, the way to add exp from killing isn't working.