Thank you guys for taking the time to answer. I really apreciate it. I understand now
edit;
Ok so I made this plugin but there are some errors:
Code:
Error: Invalid function or declaration on line 11
Error: Syntax error in the expression, or invalid function call on line 20
Error: Declaration of a local variable must appear in a compound block on line 22
Error: Undefined symbol "name" on line 22
Warning: Expression has no effect on line 22
Error: Expected token: ";", but found "]" on line 22
Error: Too many error messages on one line on line 22
Compilation aborted.
6 Errors.
Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "jm0d"
#define VERSION "1.0"
#define AUTHOR "iloverain"
new bool:isSimon
isSimon = false // <----------------------------------------- LINE 11
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd ( "say /simon", "SetSimon" )
}
public SetSimon() {
if ( get_user_team == 2 ) // <--------------------------------------------- LINE 20
new name[32]; // <------------------------------------------------- LINE 22
get_user_name( id, name, 31 );
if ( isSimon == true ) {
client_print(id, print_chat, "Someone is already Simon!");
} else {
client_print(id, print_chat, "%s is Simon!", name);
isSimon = true
}
}
__________________