Błąd w hudmsg
Optymalny193 30.04.2011
Mam błąd w kompilacji tego
Kod
Logi:
Kod
Linia 90 i 91: set_hudmessage(0, 85, 255, 0.0, 0.5, 0, 6.0, 12.0); show_hudmessage(id, "+%d Exp^n+%d Bonus Exp", xp_kill,xp_hs); Linia 96 i 97; set_hudmessage(0, 85, 255, 0.0, 0.5, 0, 6.0, 12.0); show_hudmessage(id, "+%d Exp", xp_kill);
Logi:
Warning: Loose indentation on line 90 Error: Undefined symbol "id" on line 91 Warning: Expression has no effect on line 91 Warning: Expression has no effect on line 91 Warning: Expression has no effect on line 91 Error: Expected token: ";", but found ")" on line 91 Error: Invalid expression, assumed zero on line 91 Error: Too many error messages on one line on line 91
DarkGL
30.04.2011
pokay cala funkcje
Error: Undefined symbol "id" on line 91 - nie masz zadeklarowanej zmiennej id w ktorej mialbys id gracza
Error: Undefined symbol "id" on line 91 - nie masz zadeklarowanej zmiennej id w ktorej mialbys id gracza
Optymalny193 30.04.2011
public eDeath() {
new attacker = read_data( 1 );
new ofiara = read_data( 2 );
new headshot = read_data( 3 );
if(ofiara != attacker && attacker != 0)
{
if(get_user_team(attacker) != get_user_team(ofiara))
{
PlayerXP[attacker] += xp_kill;
if(headshot)
{
PlayerXP[attacker] += xp_hs;
set_hudmessage(0, 85, 255, 0.0, 0.5, 0, 6.0, 12.0);
show_hudmessage(0, "+%d Exp^n+%d Bonus Exp", xp_kill,xp_hs);
//ColorChat(attacker,GREEN,"[%s]^x01: Dostales ^x04%d^x01 xp za zabicie wroga oraz bonus^x04 %d^x01 xp za headshot'a !",prefix,xp_kill,xp_hs);
}
else
{
set_hudmessage(0, 85, 255, 0.0, 0.5, 0, 6.0, 12.0);
show_hudmessage(0, "+%d Exp", xp_kill);
//ColorChat(attacker,GREEN,"[%s]^x01: Dostales ^x04%d^x01 xp za zabicie wroga",prefix,xp_kill);
}
}
}
while(PlayerXP[attacker] >= LEVELS[PlayerLevel[attacker]])
{
PlayerLevel[attacker] += 1;
SkillPoints[attacker] += 1;
ColorChat(attacker,GREEN,"[%s]^x01: Gratuluje, wbiles poziom ! Twoj Poziom to :^x03 %d^x01, posiadasz :^x03 %d^x01 punktow skilli.",prefix,PlayerLevel[attacker],SkillPoints[attacker]);
}
}
frN
30.04.2011
Zamien 0 na attacker tutaj
oraz tutajshow_hudmessage(0, "+%d Exp^n+%d Bonus Exp", xp_kill,xp_hs);
show_hudmessage(0, "+%d Exp", xp_kill);
Optymalny193 01.05.2011
Błąd:
Linijka 90
Dodano 01 maj 2011 - 10:29:
close.
Warning: Loose indentation on line 90
Linijka 90
set_hudmessage(0, 85, 255, 0.0, 0.5, 0, 6.0, 12.0);
Dodano 01 maj 2011 - 10:29:
close.