Page 2 of 2

Re: Xp individualiai

Posted: 2011 Feb 15 18:21
by zirualas
Bet daba man meta error ;DD.
//AMXXPC compile.exe
// by the AMX Mod X Dev Team


//// HsCounter.sma
// D:\Program Files\Steam\steamapps\zirualaz\counter-strike\cstrike\addons\amxmo
dx\scripting\HsCounter.sma(23) : error 017: undefined symbol "id"
// D:\Program Files\Steam\steamapps\zirualaz\counter-strike\cstrike\addons\amxmo
dx\scripting\HsCounter.sma(23 -- 24) : warning 215: expression has no effect
// D:\Program Files\Steam\steamapps\zirualaz\counter-strike\cstrike\addons\amxmo
dx\scripting\HsCounter.sma(28) : error 017: undefined symbol "id"
// D:\Program Files\Steam\steamapps\zirualaz\counter-strike\cstrike\addons\amxmo
dx\scripting\HsCounter.sma(28 -- 29) : warning 215: expression has no effect
// D:\Program Files\Steam\steamapps\zirualaz\counter-strike\cstrike\addons\amxmo
dx\scripting\HsCounter.sma(48) : error 033: array must be indexed (variable "-un
known-")
//
// 3 Errors.
// Could not locate output file D:\Program Files\Steam\steamapps\zirualaz\counte
r-strike\cstrike\addons\amxmodx\scripting\compiled\HsCounter.amx (compile failed
).
//
// Compilation Time: 0,08 sec
// ----------------------------------------

Press enter to exit ...

Re: Xp individualiai

Posted: 2011 Feb 15 18:41
by aurimasko
zirualas wrote:Bet daba man meta error ;DD.
//AMXXPC compile.exe
// by the AMX Mod X Dev Team


//// HsCounter.sma
// D:\Program Files\Steam\steamapps\zirualaz\counter-strike\cstrike\addons\amxmo
dx\scripting\HsCounter.sma(23) : error 017: undefined symbol "id"
// D:\Program Files\Steam\steamapps\zirualaz\counter-strike\cstrike\addons\amxmo
dx\scripting\HsCounter.sma(23 -- 24) : warning 215: expression has no effect
// D:\Program Files\Steam\steamapps\zirualaz\counter-strike\cstrike\addons\amxmo
dx\scripting\HsCounter.sma(28) : error 017: undefined symbol "id"
// D:\Program Files\Steam\steamapps\zirualaz\counter-strike\cstrike\addons\amxmo
dx\scripting\HsCounter.sma(28 -- 29) : warning 215: expression has no effect
// D:\Program Files\Steam\steamapps\zirualaz\counter-strike\cstrike\addons\amxmo
dx\scripting\HsCounter.sma(48) : error 033: array must be indexed (variable "-un
known-")
//
// 3 Errors.
// Could not locate output file D:\Program Files\Steam\steamapps\zirualaz\counte
r-strike\cstrike\addons\amxmodx\scripting\compiled\HsCounter.amx (compile failed
).
//
// Compilation Time: 0,08 sec
// ----------------------------------------

Press enter to exit ...
duok ta eilutę ant kurios meta. geriausia visa funkciją

Re: Xp individualiai

Posted: 2011 Feb 15 18:43
by zirualas

Code: Select all

public Death_Hook() {       if(read_data(3) && !read_data(5))     {        client_print(0, print_chat, "Hs!")        xp[id] += 5    }    else    {        client_print(0, print_chat, "Nebuvo Hs")        xp[id] += 2    }}

Re: Xp individualiai

Posted: 2011 Feb 15 18:45
by aurimasko

Code: Select all

 public Death_Hook(){       new id = read_data(1)    if(read_data(3) && !read_data(5))    {        client_print(0, print_chat, "Hs!")        xp[id] += 5    }    else    {        client_print(0, print_chat, "Nebuvo Hs")         xp[id] += 2    }} 
Va taip daryk

Re: Xp individualiai

Posted: 2011 Feb 15 19:04
by zirualas
Dabar sucompilina be error, bet xp neduoda..

Re: Xp individualiai

Posted: 2011 Feb 15 19:12
by aaarnas
Šiaip DeathMsg evente #5 data neegzistuoja, ar bent jau apie tokią aš nesu girdėjęs.
DeathMsg

Fired to all players (MSG_ALL or MSG_BROADCAST) to notify them of a death. This generates the HUD message the client sees in the upper right corner of their screen.
Also prints the console text message "KillerName killed VictimName with TruncatedWeaponName" or "*** KillerName killed VictimName with a headshot from TruncatedWeaponName ***"

Note: TruncatedWeaponName doesn't contain a "weapon_" prefix. See CS Weapons Information for more information.

Note: For grenade kill TruncatedWeaponName isn't "hegrenade" but "grenade", in fact it's an actual classname of a throwed grenade.

Note: For KillerID it's not necessarily should be a PlayerID, it could be 0 if player dies from fall/acid/radiation/fire/etc damage/lack of oxygen or from touch to a "trigger_hurt" entity, in this case TruncatedWeaponName will be "worldspawn" and "trigger_hurt" respectively.

Note: For vehicle kills TruncatedWeaponName could be "vehicle", "tank" et cetera.Name: DeathMsg
Structure:
byte KillerID
byte VictimID
byte IsHeadshot
string TruncatedWeaponName