Raised This Month: $51 Target: $400
 12% 

New XP Mod tutorial


Post New Thread Reply   
 
Thread Tools Display Modes
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 02-09-2012 , 16:12   Re: New XP Mod tutorial
Reply With Quote #271

It means you need to have your costs dynamic and dependent upon the user's level, without using an array.

Code:
// get cost calculator // level 0 = 0 // level 1 = X // level 2 = X * 2 // example: 200 // level 1 = 200 // level 2 = 400 // level 3 = 600 // ... #define GetCost(%1) (%1 * 200) new level = 1; new cost = GetCost(level); // cost should be 200
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Balkan
Junior Member
Join Date: Feb 2012
Old 02-10-2012 , 19:52   Re: New XP Mod tutorial
Reply With Quote #272

Hmm if u are making xp mod everyone on server from players would like that in the chat when they type before their nickname (prefix) [RANK] MyNickName , for example:
[Fish]Dzon[Y]-.^: HI !
how could i get ranks connected to prefix of the player ? Please help <3
Balkan is offline
makavelli
Senior Member
Join Date: Nov 2006
Location: Belgium
Old 02-17-2012 , 09:27   Re: New XP Mod tutorial
Reply With Quote #273

I'm getting an error for this line:
Code:
new AuthID[35] get_user_authid(id,AuthID,34)
Error: Expected token: ";", but found "-identifier-"

what is wrong with it?
__________________

Last edited by makavelli; 02-17-2012 at 09:27.
makavelli is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 02-17-2012 , 09:49   Re: New XP Mod tutorial
Reply With Quote #274

Quote:
Originally Posted by makavelli View Post
I'm getting an error for this line:
Code:
new AuthID[35] get_user_authid(id,AuthID,34)
Error: Expected token: ";", but found "-identifier-"

what is wrong with it?
What's wrong is they are on the same line without a semicolon (even the compiler says there should be a semicolon to separate them).

Code:
new AuthID[35] ; get_user_authid(id, AuthID, 34) // of new AuthID[35] get_user_authid(id, AuthID, 34)

I recommend the latter, since it's easier to read and cleaner.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
makavelli
Senior Member
Join Date: Nov 2006
Location: Belgium
Old 02-17-2012 , 10:18   Re: New XP Mod tutorial
Reply With Quote #275

ok thank you
__________________
makavelli is offline
leonard19941
Veteran Member
Join Date: Jun 2011
Old 02-20-2012 , 16:27   Re: New XP Mod tutorial
Reply With Quote #276

Please help me, fix this error:

[IMG]http://img534.**************/img534/3302/4mejora.jpg[/IMG]
__________________
leonard19941 is offline
padilha007
Senior Member
Join Date: Jul 2008
Old 02-23-2012 , 11:44   Re: New XP Mod tutorial
Reply With Quote #277

Search...Only 13 seconds!

https://forums.alliedmods.net/showthread.php?t=94696
__________________


Last edited by padilha007; 02-23-2012 at 11:44.
padilha007 is offline
striker07
Veteran Member
Join Date: Mar 2012
Location: Solar System/Earth/Belgi
Old 04-15-2012 , 08:17   Re: New XP Mod tutorial
Reply With Quote #278

I'm trying to make a xp plugin trough this tutorial but i have a few complications:

I want to have 2 diffrent classes, the classes automaticly set itself depending on what team the player is on (so a diffrent ranking for terrorists and CT's).

This is what I have done so far, im lost now.
could anyone take a look and tell me how i can make players have diffrent ranks/level/xp when they switch team?

Errors
Code:
Error: Expected token: "]", but found "[" on line 152
Error: Expected token: "]", but found "[" on line 159
Warning: Symbol is assigned a value that is never used: "iVictim" on line 162
Error: Expected token: "]", but found "[" on line 169
Error: Undefined symbol "Rank" on line 169
Error: Invalid expression, assumed zero on line 169
Error: Too many error messages on one line on line 169

Compilation aborted.
6 Errors.

There might be some more errors, compiler stopped after line 169.
Spoiler
Attached Files
File Type: sma Get Plugin or Get Source (XPranking.sma - 368 views - 5.7 KB)

Last edited by striker07; 04-15-2012 at 08:19.
striker07 is offline
Plc0tad0
New Member
Join Date: May 2012
Old 05-08-2012 , 06:00   Re: New XP Mod tutorial
Reply With Quote #279

How can i do a permanent hud mensage to show exp and level?
Plc0tad0 is offline
Devil259
Veteran Member
Join Date: Dec 2009
Location: France (59)
Old 05-14-2012 , 05:48   Re: New XP Mod tutorial
Reply With Quote #280

Create an entity (info_target for example) and make it think every X seconds.
__________________
You can do anything you set your mind to, man.

Devil259 is offline
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 13:25.


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