Raised This Month: $ Target: $400
 0% 

Requesting help for compilation


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Pegasus6
Member
Join Date: Nov 2018
Old 07-09-2019 , 19:03   Requesting help for compilation
Reply With Quote #1

Hello everyone, i've got these errors after trying to compile a shop plugin, can anyone help me with these errors ? I would be verry thankfull

Errors :
Code:
//// furienshop3.sma
             \furienshop3.sma(164) : warning 217: loose indentation
             \furienshop3.sma(164) : error 029: invalid expression, assumed zero
             \furienshop3.sma(164) : error 017: undefined symbol "Player_TakeDamage"
             \furienshop3.sma(164) : error 017: undefined symbol "iInflictor"
             \furienshop3.sma(164) : fatal error 107: too many error messages on one line
//
// Compilation aborted.
// 4 Errors.
// Could not locate output file compiled\furienshop3.amx (compile failed).
//
// Compilation Time: 0.28 sec
And the line with those errors (I think ) :
Code:
public Player_TakeDamage ( iVictim, iInflictor, iAttacker, Float:fDamage ) {
	
	if ( iInflictor == iAttacker && IsPlayer ( iAttacker ) && HasKnife [ iAttacker ] ) {
		
		SetHamParamFloat ( 4, fDamage * 3.0 );
		return HAM_HANDLED;
		
	}
	
	if ( iInflictor == iAttacker && IsPlayer ( iAttacker ) && HasAk47[ iAttacker ] ) {
		
		SetHamParamFloat ( 4, fDamage * 2.0 );
		return HAM_HANDLED;
		
	}
	
	return HAM_IGNORED;
	
}
Pegasus6 is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:26.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode