Raised This Month: $ Target: $400
 0% 

[FUN] Invalid player 2 on my script =/


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
o0panda
Member
Join Date: Sep 2005
Old 03-04-2006 , 15:33   [FUN] Invalid player 2 on my script =/
Reply With Quote #1

Hi guys,

I made a plugin for fy_ maps for my server alone that drops their glock and usp and replace it with a deagle. It works perfectly, just that if I don't add "debug" in plugins.ini it gives me this error:

Quote:
L 03/04/2006 - 13:22:57: [FUN] Invalid player 2
L 03/04/2006 - 13:22:57: [AMXX] Run time error 10 (plugin "drop_give.amxx") - debug not enabled!
L 03/04/2006 - 13:22:57: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
I add debug, but no errors come up. :S I just want it to run smooth without having to debug.

Here's the code:
Code:
#include <amxmodx> #include <fun> #include <cstrike> new givedeagle = 0; public plugin_init() {   register_plugin("Drop&Give", "1.0", "PandaGirl")   register_event("ResetHUD", "spawned", "b")   new mapname[33]   get_mapname(mapname,32)   if(containi(mapname,"fy_") > -1 ) {     givedeagle = 1;     } } public spawned(id) {         if(givedeagle == 1 && is_user_alive(id)) {     client_cmd(id, "drop weapon_glock18")     client_cmd(id, "drop weapon_usp")     set_task(0.5,"give_it",id)     } } public give_it(id) {         give_item(id,"weapon_deagle")     cs_set_user_bpammo(id, CSW_DEAGLE, 56) }
o0panda 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 20:25.


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