Raised This Month: $51 Target: $400
 12% 

Help with mine script.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ianglowz
Senior Member
Join Date: Nov 2008
Old 12-26-2008 , 02:50   Help with mine script.
Reply With Quote #1

Please check my code.Because I try to compile.Have error.

This is my code

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

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Score Checker"
#define VERSION "1.0"
#define AUTHOR "IanGlowz"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_clcmd("say /myscore","cmd_get_score",ADMIN_USER,"")
}

public 
cmd_get_score(id,level,cid)  
        new 
score get_score()
        
client_print(id,print_chat,"[ Score ] Your score is %d",score)
     
        return 
PLUGIN_HANDLED 

__________________
~ +karma to me and leave your name. ~
~ If you -karma to me,please leave your name so I know you are pro scripter. ~
~ Helping anytime ~


ianglowz is offline
steve139
Senior Member
Join Date: May 2007
Location: here
Old 12-26-2008 , 03:30   Re: Help with mine script.
Reply With Quote #2



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

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Score Checker"
#define VERSION "1.0"
#define AUTHOR "IanGlowz"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_clcmd("say /myscore","cmd_get_score")
}

public 
cmd_get_score(id)  
        new 
score get_user_frags(id)
        
client_print(id,print_chat,"[ Score ] Your score is %i",score)
     
        return 
PLUGIN_HANDLED 

steve139 is offline
ianglowz
Senior Member
Join Date: Nov 2008
Old 12-26-2008 , 03:48   Re: Help with mine script.
Reply With Quote #3

Wrong in my coding.Need to fix it~
__________________
~ +karma to me and leave your name. ~
~ If you -karma to me,please leave your name so I know you are pro scripter. ~
~ Helping anytime ~


ianglowz is offline
steve139
Senior Member
Join Date: May 2007
Location: here
Old 12-26-2008 , 03:50   Re: Help with mine script.
Reply With Quote #4

are you blind ?

Quote:
Originally Posted by steve139 View Post


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

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Score Checker"
#define VERSION "1.0"
#define AUTHOR "IanGlowz"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_clcmd("say /myscore","cmd_get_score")
}

public 
cmd_get_score(id)  
        new 
score get_user_frags(id)
        
client_print(id,print_chat,"[ Score ] Your score is %i",score)
     
        return 
PLUGIN_HANDLED 

steve139 is offline
ianglowz
Senior Member
Join Date: Nov 2008
Old 12-26-2008 , 03:53   Re: Help with mine script.
Reply With Quote #5

Show me the error please..

*EDIT*SORRY..I think that was my code.Thanks
__________________
~ +karma to me and leave your name. ~
~ If you -karma to me,please leave your name so I know you are pro scripter. ~
~ Helping anytime ~


ianglowz is offline
ianglowz
Senior Member
Join Date: Nov 2008
Old 12-26-2008 , 03:56   Re: Help with mine script.
Reply With Quote #6

I have error on compile.

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

Error: Symbol already defined: "register_clcmd" on line 13
Error: Declaration of a local variable must appear in a compound block on line 17
Error: Invalid function or declaration on line 20

3 Errors.
__________________
~ +karma to me and leave your name. ~
~ If you -karma to me,please leave your name so I know you are pro scripter. ~
~ Helping anytime ~


ianglowz is offline
steve139
Senior Member
Join Date: May 2007
Location: here
Old 12-26-2008 , 04:11   Re: Help with mine script.
Reply With Quote #7

-.- you forgot a { and i didnt checked that ...

PHP Code:
#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Score Checker"
#define VERSION "1.0"
#define AUTHOR "IanGlowz"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_clcmd("say /myscore","cmd_get_score")
}

public 
cmd_get_score(id)  {
    new 
score get_user_frags(id)
    
    
client_print(id,print_chat,"[ Score ] Your score is %i",score)
     
    return 
PLUGIN_HANDLED

steve139 is offline
ianglowz
Senior Member
Join Date: Nov 2008
Old 12-26-2008 , 06:56   Re: Help with mine script.
Reply With Quote #8

It now can be compile.Now I will test it.If it works,I post it which have your name at credit.
__________________
~ +karma to me and leave your name. ~
~ If you -karma to me,please leave your name so I know you are pro scripter. ~
~ Helping anytime ~


ianglowz is offline
ianglowz
Senior Member
Join Date: Nov 2008
Old 12-26-2008 , 07:35   Re: Help with mine script.
Reply With Quote #9

Now this plugin work GREATLY!!Thanks for your help.Now I credit you in this plugin.
__________________
~ +karma to me and leave your name. ~
~ If you -karma to me,please leave your name so I know you are pro scripter. ~
~ Helping anytime ~


ianglowz is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 12-26-2008 , 08:49   Re: Help with mine script.
Reply With Quote #10

if this plugin is good kill me -_-
__________________
xPaw is offline
Reply



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


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