AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   errors (https://forums.alliedmods.net/showthread.php?t=184562)

yamin 05-06-2012 12:26

errors
 
can anyone fix this?

tmp/text1qVcWs.sma(14) : error 029: invalid expression, assumed zero
/tmp/text1qVcWs.sma(14) : error 035: argument type mismatch (argument 4)
/tmp/text1qVcWs.sma(24) : error 010: invalid function or declaration
/tmp/text1qVcWs.sma(25) : error 010: invalid function or declaration
/tmp/text1qVcWs.sma(26) : warning 218: old style prototypes used with optional semicolumns
/tmp/text1qVcWs.sma(28) : error 021: symbol already defined: "get_user_name"
/tmp/text1qVcWs.sma(32) : error 010: invalid function or declaration
/tmp/text1qVcWs.sma(33) : warning 218: old style prototypes used with optional semicolumns
/tmp/text1qVcWs.sma(34) : error 021: symbol already defined: "name"
/tmp/text1qVcWs.sma(38) : warning 203: symbol is never used: "name"

7 Errors.
Could not locate output file /home/groups/amxmodx/public_html/websc3/text1qVcWs.amx (compile failed).
PHP Code:

/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <cstrike>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_concmd("amx_solo""admin_solo"ADMIN_BAN,);
    
register_clcmd("usp","HandleCmd")
}
public 
admin_solo(id,level,cid
{
    
console_print(id"You have activated Solo Gunner Mode");
}

public_HandleCmd
{
    if (
get_user_flags(id) & ADMIN_BAN
    give_item
(id"usp");
    new 
name [32]
    
get_user_name(id,name,31)
client_print(0,print_chat,"*** Solo Gunner is activated by Admin %s.
}
{
    if (get_user_flags(id) & ADMIN_LEVEL_H)
    give_item(id, "
usp");
    new name [32]
    get_user_name(id,name,31)
client_print(0,print_chat,"
*** Solo Gunner is activated by Golden Player %s



mottzi 05-06-2012 12:30

Re: errors
 
I have a question too: Can anyone bann people who ask questions like this in the scripting-help section?

Artifact 05-06-2012 13:28

Re: errors
 
PHP Code:

/* Plugin generated by AMXX-Studio */

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

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_concmd("amx_solo""admin_solo"ADMIN_BAN);
    
register_clcmd("usp","HandleCmd")
}
public 
admin_solo(id,level,cid
{
    
    
console_print(id"You have activated Solo Gunner Mode");
}

public 
HandleCmd(id)
{
    if (
get_user_flags(id) & ADMIN_BAN)
    {
        
give_item(id"weapon_usp");
        new 
name [32]
        
get_user_name(id,name,31)
        
client_print(0,print_chat,"*** Solo Gunner is activated by Admin %s.",name)
    }
    if (
get_user_flags(id) & ADMIN_LEVEL_H)
    {
        
give_item(id"weapon_usp");
        new 
name [32]
        
get_user_name(id,name,31)
        
client_print(0,print_chat,"*** Solo Gunner is activated by Golden Player %s",name)
    }
    return 
PLUGIN_HANDLED;
    



mottzi 05-06-2012 13:32

Re: errors
 
give_item(id, "usp")

->

give_item(id, "weapon_usp")

Artifact 05-06-2012 13:34

Re: errors
 
Quote:

Originally Posted by mottzi (Post 1703522)
give_item(id, "usp")

->

give_item(id, "weapon_usp")

edited ;) tnx

yamin 05-06-2012 13:47

Re: errors
 
Quote:

Originally Posted by Artifact (Post 1703524)
edited ;) tnx

thanks
@motzzi i am still don't know properly sorry

ProIcons 05-06-2012 15:37

Re: errors
 
Quote:

Originally Posted by mottzi (Post 1703485)
I have a question too: Can anyone bann people who ask questions like this in the scripting-help section?

Are you serious or what?, this is the right place for that.

simple_user 05-06-2012 16:19

Re: errors
 
Quote:

Originally Posted by ProIcons (Post 1703684)
Are you serious or what?, this is the right place for that.

Affirmative. Ofcourse it depends on what is the defenition of help here. I think if you post a valid code, you just solve a problem technically, but you're not helping the person to be a better coder. You know what I mean.

mottzi 05-06-2012 17:35

Re: errors
 
Quote:

Originally Posted by ProIcons (Post 1703684)
Are you serious or what?, this is the right place for that.

I am and no, this isnt the right place for a request. Requests can be postet here.

ProIcons 05-06-2012 17:44

Re: errors
 
is not a request, It has allready a code, and needs fix.


All times are GMT -4. The time now is 00:26.

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