Raised This Month: $ Target: $400
 0% 

Help me! Could not locate output file


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Akka3223
Member
Join Date: Oct 2016
Old 02-27-2017 , 16:25   Help me! Could not locate output file
Reply With Quote #1

i got this error

//// d2_announcer.sma
// C:\Games\Counter-Strike\cstrike\addons\amxmodx\scripting\d2_an nouncer.sma(29) : error 088: number of arguments does not match definition
//
// 1 Error.
// Could not locate output file C:\Games\Counter-Strike\cstrike\addons\amxmodx\scripting\compi led\d2_announcer.amx (compile failed).
//
// Compilation Time: 0.31 sec
// ----------------------------------------

Press enter to exit ...

My code:

#include <amxmodx>
#include <amxmisc>
#include <d2lod>

new PLUGIN_NAME[] = "Diablo2 Log Announcer"
new PLUGIN_AUTHOR[] = "AkkaStyle"
new PLUGIN_VERSION[] = "2.2"

new const HEROES[][] =
{
"Hunter",
"Assassin",
"Warlock",
"Warrior",
"Rogue",
"Druid",
"Mage"
}
new const LEVELS[] =
{

}
public plugin_init()
{
register_plugin(PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR)
}
public d2_logged(id, log_type)
{
static name[32] ; get_user_name(id, name, charsmax(name), LEVELS);

if ( log_type == LOGGED )
{
client_printcolor( 0, "/y[ /g%s /y] - /ctr%s /yhas logged ON.", name, HEROES[ get_p_hero(id) ], LEVELS[ get_p_level(id) ]);
}
else
{
client_printcolor( 0, "/y[ /g%s /y] - /ctr%s /yhas logged OFF.", name, HEROES[ get_p_hero(id) ], LEVELS[ get_p_level(id) ]);
}
}
Akka3223 is offline
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 02-27-2017 , 16:30   Re: Help me! Could not locate output file
Reply With Quote #2

Quote:
Originally Posted by Akka3223 View Post
i got this error

Too bad.
__________________
edon1337 is offline
Akka3223
Member
Join Date: Oct 2016
Old 02-27-2017 , 16:35   Re: Help me! Could not locate output file
Reply With Quote #3

Quote:
Originally Posted by edon1337 View Post
Too bad.
dude i tryed to put amxx anouncer still wont work:C
Akka3223 is offline
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 02-27-2017 , 16:40   Re: Help me! Could not locate output file
Reply With Quote #4

Quote:
Originally Posted by Akka3223 View Post
dude i tryed to put amxx anouncer still wont work:C
That code is terrible.

Look, the line I highlighted makes no sense.

Code:
#include <amxmodx> #include <amxmisc> #include <d2lod> new PLUGIN_NAME[] = "Diablo2 Log Announcer" new PLUGIN_AUTHOR[] = "AkkaStyle" new PLUGIN_VERSION[] = "2.2" new const HEROES[][] = { "Hunter", "Assassin", "Warlock", "Warrior", "Rogue", "Druid", "Mage" } new const LEVELS[] = { } public plugin_init() { register_plugin(PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR) } public d2_logged(id, log_type) {  static name[32] ; get_user_name(id, name, charsmax(name), LEVELS); if ( log_type == LOGGED ) { client_printcolor( 0, "/y[ /g%s /y] - /ctr%s /yhas logged ON.", name, HEROES[ get_p_hero(id) ], LEVELS[ get_p_level(id) ]); } else { client_printcolor( 0, "/y[ /g%s /y] - /ctr%s /yhas logged OFF.", name, HEROES[ get_p_hero(id) ], LEVELS[ get_p_level(id) ]); } }
__________________
edon1337 is offline
Akka3223
Member
Join Date: Oct 2016
Old 02-27-2017 , 16:43   Re: Help me! Could not locate output file
Reply With Quote #5

Quote:
Originally Posted by edon1337 View Post
That code is terrible.

Look, the line I highlighted makes no sense.

Code:
#include <amxmodx> #include <amxmisc> #include <d2lod> new PLUGIN_NAME[] = "Diablo2 Log Announcer" new PLUGIN_AUTHOR[] = "AkkaStyle" new PLUGIN_VERSION[] = "2.2" new const HEROES[][] = { "Hunter", "Assassin", "Warlock", "Warrior", "Rogue", "Druid", "Mage" } new const LEVELS[] = { } public plugin_init() { register_plugin(PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR) } public d2_logged(id, log_type) {  static name[32] ; get_user_name(id, name, charsmax(name), LEVELS); if ( log_type == LOGGED ) { client_printcolor( 0, "/y[ /g%s /y] - /ctr%s /yhas logged ON.", name, HEROES[ get_p_hero(id) ], LEVELS[ get_p_level(id) ]); } else { client_printcolor( 0, "/y[ /g%s /y] - /ctr%s /yhas logged OFF.", name, HEROES[ get_p_hero(id) ], LEVELS[ get_p_level(id) ]); } }
Dude is there any tag lik[/Code] or smthing like this
Akka3223 is offline
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 02-27-2017 , 16:46   Re: Help me! Could not locate output file
Reply With Quote #6

[pawn] or [php]
__________________
edon1337 is offline
Akka3223
Member
Join Date: Oct 2016
Old 02-27-2017 , 16:50   Re: Help me! Could not locate output file
Reply With Quote #7

ok

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

new PLUGIN_NAME[] = "Diablo2 Log Announcer"
new PLUGIN_AUTHOR[] = "AkkaStyle"
new PLUGIN_VERSION[] = "2.2"

new const HEROES[][] = 
{
    
"Hunter",
    
"Assassin",
    
"Warlock",
    
"Warrior",
    
"Rogue",
    
"Druid",
    
"Mage"

new const 
LEVELS[] = 
{


public 
plugin_init() 
{
    
register_plugin(PLUGIN_NAMEPLUGIN_VERSIONPLUGIN_AUTHOR)
}
public 
d2_logged(idlog_type)
{
    static 
name[32] ; get_user_name(idnamecharsmax(name), LEVELS);

    if ( 
log_type == LOGGED )
    {
        
client_printcolor0"/y[ /g%s /y] - /ctr%s /yhas logged ON."nameHEROESget_p_hero(id) ], LEVELSget_p_level(id) ]);
    }
    else
    {
        
client_printcolor0"/y[ /g%s /y] - /ctr%s /yhas logged OFF."nameHEROESget_p_hero(id) ], LEVELSget_p_level(id) ]);
    }


Last edited by Akka3223; 02-27-2017 at 16:53.
Akka3223 is offline
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 02-27-2017 , 16:51   Re: Help me! Could not locate output file
Reply With Quote #8

You have to end it with [/php]. Don't post again just edit your last post.
__________________
edon1337 is offline
Akka3223
Member
Join Date: Oct 2016
Old 02-27-2017 , 16:52   Re: Help me! Could not locate output file
Reply With Quote #9

here is it

Last edited by Akka3223; 02-27-2017 at 16:53.
Akka3223 is offline
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 02-27-2017 , 16:56   Re: Help me! Could not locate output file
Reply With Quote #10

I mean't your code looks terrible not the indentation.

What's this for
Code:
new const LEVELS[] = { }
__________________

Last edited by edon1337; 02-27-2017 at 16:56.
edon1337 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 20:43.


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