Raised This Month: $ Target: $400
 0% 

Help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
s0upnazi
Member
Join Date: Mar 2006
Old 05-27-2006 , 22:12   Help
Reply With Quote #1

Code:
#include <amxmodx> #include <amxmisc> #include <fun> #include <cstrike> public plugin_init() {     register_plugin("Goodbye", "1.0", "s0upnazi")     register_concmd("amx_goodbye", "cmd_bye", ADMIN_KICK, "<target> <# of slaps> ") } public cmd_bye(id, level, cid) {     if(!cmd_access(id, level, cid, 2))         return PLUGIN_HANDLED         new Arg1[24]     new Arg2[4]     read_argv(1, Arg1, 23)     read_argv(1, Arg2, 3)     new Slaps = str_to_num(Arg2)         new players[32], num     get_players(players, num)     new i     for (i=1; i<num; i++)     {              user_slap(players[i], Slaps )     } else {          new player = cmd_target(id, Arg1, 1)          if (!player)          {               console_print(id, "Whoever %s is could not be slapped!", Arg1)           return PLUGIN_HANDLED          } else {           user_slap(player, Slaps)          }     }         return PLUGIN_HANDLED }

I get an error on line 30 invalid function, assumed zero Can someone help me out here with what I did wrong?
s0upnazi is offline
 


Thread Tools
Display Modes

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 16:19.


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