Raised This Month: $ Target: $400
 0% 

[help with my plugin]


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Xevious
Senior Member
Join Date: Sep 2009
Location: Computer Chair
Old 10-09-2009 , 20:48   [help with my plugin]
Reply With Quote #1

It compiled successfully but 1 error occur.
[Frozener(3 Warning 209 function cmd_fro should return a value


PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <fakemeta>

#define PLUGIN "Frozener"
#define VERSION "1.0"
#define AUTHOR "Xevious"


public plugin_init() 
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_concmd("amx_fro""cmd_fro"ADMIN_SLAY"<target>")
}

public 
cmd_fro(idlevelcid)
{
    if (!
cmd_access(idlevelcid3))
        return 
PLUGIN_HANDLED

    
    
new Arg1[24]
    
read_argv(1Arg123)
    
    new 
player cmd_target(idArg11)
    
    if (!
player)
    {
        
console_print(id"Sorry, player %s could not be found or targetted!"Arg1)
        return 
PLUGIN_HANDLED
    

    else 
    {
        
set_pev(playerpev_flagspev(playerpev_flags) | FL_FROZEN
    }

__________________
Nothing possible when you are not hardworking
Xevious is offline
Send a message via MSN to Xevious
 



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 22:36.


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