Jump to content
GIGN Forum

Recommended Posts

Yo visiem. Tātad man ir sekojoša problēma ar Xp.inl failu. Kad izdzēšu

CODE

// Check for a team kill

if ( get_user_team( iAttacker ) == get_user_team( iVictim ) )

{

// Remove XP since he killed his teammate

iBonusXP = XP_Give( iAttacker, -1 * iXP );

// This message should be displayed no matter what XP_kill_objectives is, b/c it's a no-no

if ( iBonusXP != 0 )

{

client_print( iAttacker, print_chat, "%s You have lost %d XP for killing a teammate", g_MODclient, -1 * iBonusXP );

}

}

Man met compailerā erroru! Ko man iesākt?

Edited by dinastyo
Link to comment
Share on other sites

Zinu tikai to, kā šito var noslēpt, lai neredz

// Remove XP since he killed his teammate

iBonusXP = XP_Give( iAttacker, -1 * iXP );

aizstāt ar 0(laikam jālīdz).
client_print( iAttacker, print_chat, "%s You have lost %d XP for killing a teammate", g_MODclient, -1 * iBonusXP );
aizstāt ar console.

Būs tā ka rādīsies You have lost 0 XP for killing a teammate kosnolē. vai arī vispār visu kas ir iekš "" izdēst,l ai izskatās šitā:

console_print( iAttacker, print_chat, "", g_MODclient, -1 * iBonusXP );

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...