Page 1 of 1

Pagalbos!

Posted: 2017 Feb 27 17:21
by Akka3223
Sveiki gal kas ismano apie DiabloII moda man reiktu pagalbos man lenda sita nesamone

//// d2_announcer.sma
// C:\Games\Counter-Strike\cstrike\addons\amxmodx\scripting\d2_announcer.sma(25) : error 017: undefined symbol "levels"
// C:\Games\Counter-Strike\cstrike\addons\amxmodx\scripting\d2_announcer.sma(25) : warning 215: expression has no effect
// C:\Games\Counter-Strike\cstrike\addons\amxmodx\scripting\d2_announcer.sma(25) : error 001: expected token: ";", but found ")"
// C:\Games\Counter-Strike\cstrike\addons\amxmodx\scripting\d2_announcer.sma(25) : error 029: invalid expression, assumed zero
// C:\Games\Counter-Strike\cstrike\addons\amxmodx\scripting\d2_announcer.sma(25) : fatal error 107: too many error messages on one line


scriptas:

#include <amxmodx>
#include <d2lod>

new PLUGIN_NAME[] = "Diablo2 Log Announcer"
new PLUGIN_AUTHOR[] = "xbatista"
new PLUGIN_VERSION[] = "1.0"

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

new 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));

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) ]);


EDITED

Re: Pagalbos!

Posted: 2017 Feb 27 18:41
by luxuks

Code: Select all

new 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)); 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) ]);}
Banydk sita gal nors ir nemanau kad veiks, idek daugiau kodo arba visa plugina nes cia is tokios makalynes 5 eiluciu nieko nesuprasi.

Re: Pagalbos!

Posted: 2017 Feb 27 18:52
by Akka3223
luxuks wrote:

Code: Select all

new 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)); 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) ]);}
Banydk sita gal nors ir nemanau kad veiks, idek daugiau kodo arba visa plugina nes cia is tokios makalynes 5 eiluciu nieko nesuprasi.
va ikeliau pilna

Re: Pagalbos!

Posted: 2017 Feb 27 18:58
by laimiukas3
Akka3223 wrote:
luxuks wrote:

Code: Select all

new 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)); 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) ]);}
Banydk sita gal nors ir nemanau kad veiks, idek daugiau kodo arba visa plugina nes cia is tokios makalynes 5 eiluciu nieko nesuprasi.
va ikeliau pilna
kur ?

Re: Pagalbos!

Posted: 2017 Feb 27 19:45
by Akka3223
laimiukas3 wrote:
Akka3223 wrote:
luxuks wrote:

Code: Select all

new 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)); 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) ]);}
Banydk sita gal nors ir nemanau kad veiks, idek daugiau kodo arba visa plugina nes cia is tokios makalynes 5 eiluciu nieko nesuprasi.
va ikeliau pilna
kur ?
paciam virsui ten kur pradzia dbr ten pilna paeditinau

Re: Pagalbos!

Posted: 2017 Feb 27 20:24
by luxuks
Pilna :D 2 eilutes dadejo... cia turbut get_p_level problema kelia nes nesujungta su LEVELS yra bet kai kodo nera tai cia nelabai padet eis

Re: Pagalbos!

Posted: 2017 Feb 27 20:41
by Akka3223
luxuks wrote:Pilna :D 2 eilutes dadejo... cia turbut get_p_level problema kelia nes nesujungta su LEVELS yra bet kai kodo nera tai cia nelabai padet eis
Tau failiuka atsiust?