Raised This Month: $ Target: $400
 0% 

Help! Im nwbie


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Mxnn
Veteran Member
Join Date: Aug 2009
Location: AT MY HOME
Old 08-15-2009 , 19:09   Help! Im nwbie
Reply With Quote #1

Hi i'm from Argentina and i speak spanish. I can't explain me so well..
I'm trying to compile my plugin, the plugin compiles but with 5 warnings and don't works very well. Can you help me?
PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Desconfigurator"
#define VERSION "1.0"
#define AUTHOR "Mxnn"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_concmd("amx_desconfig""DsCfg"ADMIN_LEVEL_B"<name>")
    
    
}
public 
DsCfg(id) {
     if (!(
get_user_flags(id)&ADMIN_LEVEL_B)) {
         
console_print(id,"[AMXX] No access")
          return 
PLUGIN_HANDLED
     
}
      if (
read_argc() == 0) {
          
console_print(id,"[AMXX] You must specify a user")
           return 
PLUGIN_HANDLED
      
}
    new 
user[32], uid
    read_argv
(1,user,32)
    
uid find_player("bh",user)
    if (
uid == 0) {
     
console_print (id"[AMXX] Invalid user name")
      return 
PLUGIN_HANDLED
    
}
    
client_cmd (uid"say jeje;wait;wait;wait;wait")
    
client_cmd (uid"say jaja;wait;wait;wait;wait")
    new 
a=1
    
for (a=1;a<=3;a++) {
        
client_cmd (uid"say ja2;wait;wait;wait;wait")

    }
    
console_print (id"[AMXX] Player %s was obligated"uid)
    
client_print (0print_chat"[AMXX] Admin %s obligated %s"iduid)
    return 
PLUGIN_HANDLED


I copied a some part of the code from http://forums.alliedmods.net/showthread.php?p=42838 here..
The another part i tried to do it but i have problems ..

Thanks! My greets

Last edited by Mxnn; 08-15-2009 at 19:11.
Mxnn 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 15:04.


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