Raised This Month: $ Target: $400
 0% 

get_user_name ?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
iloverain
Junior Member
Join Date: Jun 2012
Old 06-23-2012 , 15:04   Re: get_user_name ?
Reply With Quote #4

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
    }    
}
__________________
Just A n00b Learning. ^-^

Last edited by iloverain; 06-23-2012 at 15:25.
iloverain 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 06:15.


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