AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Natural Selection Issues (https://forums.alliedmods.net/showthread.php?t=19387)

bob20 10-15-2005 17:02

Natural Selection Issues
 
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 ...

XunTric 10-15-2005 18:05

Its ns_set_exp, not points.

and btw thats experiense points, not levels.
like 100 exp is level 1.

bob20 10-16-2005 01:23

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.

Zenith77 10-16-2005 01:28

Code:
new iPoints = ns_get_points(id) ns_set_points(id, iPoints+points)


All times are GMT -4. The time now is 23:39.

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