Headshot help
#9

Quote:
Originally Posted by RyderX
Посмотреть сообщение
Code:
PHP код:
Line 5>>> public OnPlayerTakeDamage(playeridissueridFloatamountweaponidbodypart)
{
    if(
issuerid != INVALID_PLAYER_ID && weaponid == 34 && bodypart == 9)
    {
        new 
string[128],name[MAX_PLAYER_NAME],name2[MAX_PLAYER_NAME];
                
GetPlayerName(playeridnamesizeof(name));
                
GetPlayerName(issueridname2sizeof(name2));
        
format(stringsizeof(string), "[RBOT]:{FFFFFF} {FF0FF0}%s {FFFFFF}Has Headshotted {F00F00}%d {FFFFFF}And Wins {F12F12}$2000$!"namename2);
        
SendClientMessageToAll(0xF8F8F8FFFstring);
        
SetPlayerHealth(playerid0.0);
        return 
1;

Error:
Код:
C:\Users\Admin\Desktop\HeadShot.pwn(5) : error 025: function heading differs from prototype
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Update your a_samp.inc.

EDIT: I didn't notice Konstantinos' post.
Reply


Messages In This Thread
Headshot help - by RyderX - 02.01.2017, 19:43
Re: Headshot help - by BiosMarcel - 02.01.2017, 19:46
Re: Headshot help - by RyderX - 02.01.2017, 19:49
Re: Headshot help - by Konstantinos - 02.01.2017, 19:50
Re: Headshot help - by RyderX - 02.01.2017, 19:52
Re: Headshot help - by iLearner - 02.01.2017, 19:53
Re: Headshot help - by Konstantinos - 02.01.2017, 19:53
Re: Headshot help - by RyderX - 02.01.2017, 19:54
Re: Headshot help - by GoldenLion - 02.01.2017, 19:56
Re: Headshot help - by RyderX - 02.01.2017, 19:56

Forum Jump:


Users browsing this thread: 1 Guest(s)