Raised This Month: $ Target: $400
 0% 

Exp problem


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Str4x3D1x
Member
Join Date: Feb 2014
Old 04-10-2017 , 10:49   Exp problem
Reply With Quote #1

Hello!
I've got some problems with my code.
Let's try to explain this, (example) you need 500 XP for level 1, you receive 100 XP for kill which means you need 5 kills for level 1. Problem is, when i get 500 XP or even more (i went to 2000+ xp) i didn't received level. I did some register_clcmd to check my xp and level and no matter how much XP i've got, i don't have permission to take a knife. I simply don't get any levels no matter how much XP i've got.

Next problem is, when a player type kill in console, they receive XP (100, like a simple kill). But when they die from (example) jumping from heights and die they don't get XP (which is good) but confuses me why they get XP from typing kill in console.

Next problem is, when i take knife and it displays my v_model to me after next round (or switching from weapon to knife) a default knife will pop up instead of skin i've took.... I think i need to do CurWeapon here but i am not pretty sure how is that working, so can anyone help me fix these problems ?


Full code:

https://pastebin.com/vDzn7qR0

Anyone can help me fix these stuff ? I would be a lot thankful!

http://prntscr.com/euqngz

I got 1200 XP but my level is at 0 (as shown in image)

I think i need 500 XP for level 1

Spoiler
Here is XP and Level check
Spoiler


***THESE ARE IN CODE, AND TRY ANSWERING ALL THE QUESTIONS INSTEAD OF 1, BUT ANY HELP IS WELCOME***

Last edited by Str4x3D1x; 04-10-2017 at 11:10.
Str4x3D1x is offline
 


Thread Tools
Display Modes

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 18:00.


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