Raised This Month: $ Target: $400
 0% 

amx_jail (Error compiling)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Emilioneri
Senior Member
Join Date: Feb 2009
Location: Georgia, Tbilisi
Old 03-13-2009 , 08:28   Re: amx_jail (Error compiling)
Reply With Quote #10

PHP Code:
/* Plugin generated by Emilioneri */

#include <amxmodx>
#include <amxmisc>
#include <fun>

#define PLUGIN "Jail"
#define VERSION "1.0"
#define AUTHOR "Emilioneri"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
// Add your code here...
    
register_concmd("amx_jail""cmd_jail"ADMIN_RCON"< name | #userid > Place player in jail!")
    return 
PLUGIN_HANDLED
}

public 
cmd_jail(idlevelcid)
{
    if (!
cmd_access(idlevelcid2))
        return 
PLUGIN_HANDLED
        
    
new Argument[32]
    
    
read_argv(1Argument31)
    
    new 
Target cmd_target(idArgumentCMDTARGET_ALLOW_SELF)
    
    if (
Target)
    
         new 
origin[3]; 
         
origin[0] = 446  // X  
    
origin[1] = 2446  // Y  
    
origin[2] = -6  // Z 

    
set_user_origin(Targetorigin)
    
    return 
PLUGIN_HANDLED


Code:
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team

Error: Declaration of a local variable must appear in a compound block on line 33
Warning: Loose indentation on line 33
Error: Undefined symbol "origin" on line 33
Warning: Expression has no effect on line 33
Error: Expected token: ";", but found "]" on line 33
Error: Too many error messages on one line on line 33

Compilation aborted.
4 Errors.
Could not locate output file C:\Documents and Settings\emilioneri\Desktop\admin_jail.amx (compile failed).
__________________
Emilioneri is offline
Send a message via Skype™ to Emilioneri
 



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 08:55.


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