Raised This Month: $ Target: $400
 0% 

Natural Selection Issues


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
bob20
New Member
Join Date: Oct 2005
Old 10-15-2005 , 17:02   Natural Selection Issues
Reply With Quote #1

I am in a bit of a problem here ...

I am experienceing some extreme issues with Natural Selection. With any plugin that tries to alter the experience of a player, or the combat points it either returns an error, or does not do anything.

I even coded this plugin to see if it was me, or if it was the author.

Code:
#include <amxmodx> #include <amxmisc> #include <ns> public plugin_init() {     register_plugin("Point Giver","1","me");     register_clcmd("amx_givepoint","give_point",ADMIN_LEVEL_A,"<user> <point>- Adds or subtracts a point"); } public give_point(id) {     new arg1[32], arg2[32], player, point;     read_argv(1,arg1,31)     read_argv(2,arg2,31)         player = cmd_target(id,arg1)     point = str_to_num(arg2);         ns_set_points(player,point);     return PLUGIN_HANDLED; }

It still does not alter the combat point. And yes, I am running a co_* map. I see every server with the plugin I wish to run with the same version of MetaMod and AMXX (1.60), and the same NS_amxx.dll module. I see nothing wrong with my scripting, does it work on any of your servers?
I really need some help, this is irking me to death.
I even reinstalled AMXX twice, hoping it would do something. I am also running WIN2k3, I am not sure if that would do anything ...
bob20 is offline
XunTric
BANNED
Join Date: Jan 2005
Location: Norway/Norge
Old 10-15-2005 , 18:05  
Reply With Quote #2

Its ns_set_exp, not points.

and btw thats experiense points, not levels.
like 100 exp is level 1.
XunTric is offline
bob20
New Member
Join Date: Oct 2005
Old 10-16-2005 , 01:23  
Reply With Quote #3

Yes, I know that, I was most likely vague on that topic. The plugin I use lets you build in co_ maps. You can build, which costs one experience point, and if you recycle, it returns that point back to you. The problem I am experiencing is that it can't take experience, levels, or points; letalone add them.

I am not quite sure what the problem is. It seems that only the functions in which edit the levels, points, or experience are not functioning properly for me.
bob20 is offline
Zenith77
Veteran Member
Join Date: Aug 2005
Old 10-16-2005 , 01:28  
Reply With Quote #4

Code:
new iPoints = ns_get_points(id) ns_set_points(id, iPoints+points)
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 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 23:39.


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