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
Pagalbos!
Re: Pagalbos!
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) ]);}
Re: Pagalbos!
va ikeliau pilnaluxuks wrote:Banydk sita gal nors ir nemanau kad veiks, idek daugiau kodo arba visa plugina nes cia is tokios makalynes 5 eiluciu nieko nesuprasi.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) ]);}
- laimiukas3
- Moderatorius
- Posts: 4569
- Joined: 2012 Aug 03 01:12
- Skype: laimiukas3
- Location: Vilnius
- Contact:
Re: Pagalbos!
kur ?Akka3223 wrote:va ikeliau pilnaluxuks wrote:Banydk sita gal nors ir nemanau kad veiks, idek daugiau kodo arba visa plugina nes cia is tokios makalynes 5 eiluciu nieko nesuprasi.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) ]);}
Re: Pagalbos!
paciam virsui ten kur pradzia dbr ten pilna paeditinaulaimiukas3 wrote:kur ?Akka3223 wrote:va ikeliau pilnaluxuks wrote:Banydk sita gal nors ir nemanau kad veiks, idek daugiau kodo arba visa plugina nes cia is tokios makalynes 5 eiluciu nieko nesuprasi.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) ]);}
Re: Pagalbos!
Pilna
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!
Tau failiuka atsiust?luxuks wrote:Pilna2 eilutes dadejo... cia turbut get_p_level problema kelia nes nesujungta su LEVELS yra bet kai kodo nera tai cia nelabai padet eis
- Attachments
-
d2_announcer.sma
- (788 Bytes) Downloaded 817 times
Who is online
Users browsing this forum: No registered users and 3 guests