SuperSlug
09-01-2003, 12:47 AM
What's wrong with this? I only get a popup when I suicide.
function KillPop(%killer, %victim, %weapon)
{
if(%killer != getManagerID() || %victim != getManagerID())
return;
remoteTP(2048, "<JC><F1>Killer: <F2>" @ Client::getName(%killer) @ "<F1> Victim: <F2>" @ Client::getName(%victom) @ "\n<F1>Weapon: <F2>" @ %weapon, 3);
}
Event::Attach(eventKillTr ak, KillPop);
random
09-01-2003, 01:56 AM
What's wrong with this? I only get a popup when I suicide.
function KillPop(%killer, %victim, %weapon)
{
if(%killer != getManagerID() || %victim != getManagerID())
return;
remoteTP(2048, "<JC><F1>Killer: <F2>" @ Client::getName(%killer) @ "<F1> Victim: <F2>" @ Client::getName(%victom) @ "\n<F1>Weapon: <F2>" @ %weapon, 3);
}
Event::Attach(eventKillTr ak, KillPop);
just a typo
SuperSlug
09-01-2003, 02:20 AM
I don't see any typos, maybe I'm too drunk and/or dumb.
·liquid·
09-01-2003, 03:00 AM
line 6, column 115
"victom" should be "victim"
SuperSlug
09-01-2003, 03:45 AM
I'm going to go with the drunk theory at the moment...
random
09-01-2003, 04:03 AM
Let's not jump to conclusions..
SuperSlug
09-01-2003, 04:41 AM
You're right, I could just be fucking retarded.
random
09-01-2003, 05:54 AM
You can't be the only one, I only noticed it the 3rd time after my eyeballs dried up
SuperSlug
09-01-2003, 03:00 PM
Still not working for some reason.
·liquid·
09-01-2003, 03:23 PM
is this what you're trying to do?
function KillPop(%killer, %victim, %weapon) {
if(%killer == getManagerID() && %victim != getManagerID())
remoteTP(2048, "<jc><f1>You killed <f2>"@ Client::getName(%victim) @" <f1>with your <f2>"@ %weapon, 3);
}
Event::Attach(eventKillTr ak, KillPop);
SuperSlug
09-01-2003, 09:30 PM
I figured it out. For some reason it wouldn't work when I did the not equal statement. Instead I just did if %killer == gmid or %victim == gmid