Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help Variables in CodeCallback_PlayerKilled didn't work O.o - SOLVED
#1
I have an very simple code in _callbacksetup.gsc but it didn't work...
The game starts without an Error but there comes no massage -_-

PHP Code:
CodeCallback_PlayerKilled(eInflictoreAttackeriDamagesMeansOfDeathsWeaponvDirsHitLoctimeOffsetdeathAnimDuration)
{
    
self endon("disconnect");
        
self.killer eAttacker;
        
self.sMeansOfDeath sMeansOfDeath;
        
eAttacker iprintlnbold(self.killer " - " self.sMeansOfDeath);
    [[
level.callbackPlayerKilled]](eInflictoreAttackeriDamagesMeansOfDeathsWeaponvDirsHitLoctimeOffsetdeathAnimDuration);

i have define the variables self.killer and self.sMeansOfDeath.

Do you know, why it didn't work?
Sorry for bad English Blush -> *GERMAN*
Reply

#2
try to change eAttacker to self
self to eAttacker lol Troll
Idk, BO dont have victim thing
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click
Reply

#3
(10-31-2011, 13:55)Se7en Wrote: try to change eAttacker to self
self to eAttacker lol Troll
Idk, BO dont have victim thing

If I change eAttacker to self, the text would shown on Hud of the Killed Player...
I want it on the hud of the Killer...
Sorry for bad English Blush -> *GERMAN*
Reply

#4
I'm not sure what happens when you print out an entity, or add a string to an entity, so try this:

eAttacker iprintlnbold(self.killer.name + " - " + self.sMeansOfDeath);

Also, is there any need for those two variables 'self.killer' and 'self.sMeansOfDeath'?
Reply

#5
(11-01-2011, 22:43)Phl3x_ Wrote: I'm not sure what happens when you print out an entity, or add a string to an entity, so try this:

eAttacker iprintlnbold(self.killer.name + " - " + self.sMeansOfDeath);

Also, is there any need for those two variables 'self.killer' and 'self.sMeansOfDeath'?

No there isn't a need for this, but if i use eAttacker and sMeansOfDeath, it didnt work...
And i din't know, why...
Sorry for bad English Blush -> *GERMAN*
Reply

#6
Try printing them out individually, and if they don't print out, then they're undefined and the problem would be elsewhere.

iprintlnbold(eAttacker.name);
iprintlnbold(sMeansOfDeath);
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Didn't expect this Arteq 3 2,454 09-23-2013, 01:17
Last Post: Rendflex
  Help [C#] WebClient how to know real url [solved] narkos 21 12,978 09-09-2013, 15:21
Last Post: surtek
Information Help How to edit new derived entry? (Solved) SSonic70 1 2,737 08-20-2013, 15:29
Last Post: Nekochan
  Help Permissions DOESNT work Hallla 2 3,051 08-18-2013, 11:28
Last Post: hillbilly
  why permissions dont work. ? ExoGamer* 4 3,269 07-21-2013, 13:46
Last Post: X-Track
  Bunker Plugin Won't work OBJAY 4 4,505 06-03-2013, 15:48
Last Post: X-Track
  Help prefix doesnt work with shop koro35 2 2,885 05-18-2013, 10:51
Last Post: koro35
  [Tutorial] How to use variables as long as server runs Justin 4 4,215 05-04-2013, 20:54
Last Post: Nekochan
  Help Perks do not work (( x1412 6 4,396 04-06-2013, 18:09
Last Post: x1412
  liberation dont work? puistis 7 7,781 02-18-2013, 09:17
Last Post: JariZ

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.