Raised This Month: $ Target: $400
 0% 

set_user_xxx doesn't work


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Feivel
Junior Member
Join Date: Apr 2004
Old 04-26-2004 , 18:31   set_user_xxx doesn't work
Reply With Quote #1

I'm writing my first plugin. For matters of legiblity i've cut the unimportant parts:

#include <amxmod>
#include <amxmisc>
#include <fun>

public plugin_init() {
register_plugin("AimTrain", "1.0", "Feivel")
register_clcmd("say aim", "Start_Aim", ADMIN_VOTE, " : Starts a new aiming session")
}


public Start_Aim(id, level, cid) {
if (!cmd_access(id, level, cid, 1)) {
return PLUGIN_HANDLED
}

new player[32] = {33, ...}
new num = 0
new health = 500
client_print(id, print_center, "Starting a new Round")
get_players(player, num)
set_user_health(id, health)
/* Some Code */
return PLUGIN_HANDLED
}

as long as I leave the "set_user_health"-line away the plugin runs fine. But when i use it i get a bad load for the plugin. In fact the plugin doesen't work with no set_user_xxx-function like set_user_armor and so on.
I played a bit around with all kind of indexes, numbers, ids and whatever. But nothin helps. Even copied code from other plugins doesn't work.

Someone knows why? thanks in advance.
Feivel is offline
 



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:35.


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