Pagalbos!

Forumas skirtas spręsti problemas iškilusias su CS 1.6 serveriais.
Post Reply
Akka3223
Parašęs kelias žinutes
Posts: 6
Joined: 2017 Feb 26 22:04
Skype: grindexpvp

Pagalbos!

Post 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
Last edited by Akka3223 on 2017 Feb 27 18:51, edited 1 time in total.

luxuks
Jau po truputį tampa savu
Posts: 186
Joined: 2014 Jun 18 17:20
Skype: lukas.luxuks

Re: Pagalbos!

Post 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.

Akka3223
Parašęs kelias žinutes
Posts: 6
Joined: 2017 Feb 26 22:04
Skype: grindexpvp

Re: Pagalbos!

Post 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

User avatar
laimiukas3
Moderatorius
Posts: 4569
Joined: 2012 Aug 03 01:12
Skype: laimiukas3
Location: Vilnius
Contact:

Re: Pagalbos!

Post 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 ?
Image
Image
Image

Akka3223
Parašęs kelias žinutes
Posts: 6
Joined: 2017 Feb 26 22:04
Skype: grindexpvp

Re: Pagalbos!

Post 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

luxuks
Jau po truputį tampa savu
Posts: 186
Joined: 2014 Jun 18 17:20
Skype: lukas.luxuks

Re: Pagalbos!

Post 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

Akka3223
Parašęs kelias žinutes
Posts: 6
Joined: 2017 Feb 26 22:04
Skype: grindexpvp

Re: Pagalbos!

Post 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?
Attachments
d2_announcer.sma
(788 Bytes) Downloaded 742 times

Post Reply

Who is online

Users browsing this forum: No registered users and 12 guests