Please Help Me!
#1

Error:
Код:
C:\Users\BladeGamingYT\Desktop\Headshot.pwn(37) : warning 202: number of arguments does not match definition
C:\Users\BladeGamingYT\Desktop\Headshot.pwn(37) : warning 202: number of arguments does not match definition
C:\Users\BladeGamingYT\Desktop\Headshot.pwn(40) : warning 202: number of arguments does not match definition
C:\Users\BladeGamingYT\Desktop\Headshot.pwn(40) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Warnings.
Line 37 and 40:
Код:
#include <a_samp>
#include <zcmd>
#define COLOR_WHITE 0xFFFFFFAA

public OnFilterScriptInit()
{
	print("\n--------------------------------------");
	print("		Headshot system by Abdullah420		");
	print("--------------------------------------\n");
	return 1;
}

public OnFilterScriptExit()
{
	return 1;
}



public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
{
	if(issuerid != INVALID_PLAYER_ID)
	{
		if(IsPlayerConnected(issuerid))
		{
			if(weaponid == 33 || weaponid == 34)
			{
	            if(bodypart == 9)
	            {
	                new playerName[MAX_PLAYER_NAME];
                    GetPlayerName(playerid, playerName, sizeof(playerName));
                    new otherName[MAX_PLAYER_NAME];
                    GetPlayerName(issuerid, otherName, sizeof(otherName));
			        SetPlayerHealth(playerid, 0);
			        GameTextForPlayer(issuerid,"~r~Headshot",2000,3);
			        PlayerPlaySound(issuerid, 17802, 0.0, 0.0, 0.0);
			        SendClientMessage(issuerid, COLOR_WHITE, "{FF0000}You have killed {FFFF00}%s(%i){FF0000} with a Headshot!", playerName, playerid);
			        GameTextForPlayer(playerid,"~r~Headshot",2000,3);
			        PlayerPlaySound(playerid, 17802, 0.0, 0.0, 0.0);
			        SendClientMessage(playerid, COLOR_WHITE, "{FF0000}You have been killed in a Headshot by {FFFF00}%s(%i)!", otherName, issuerid);
			        new msg[400];
                    format(msg, sizeof(msg), "{A7C4E4}%s(%i) has killed %s(%i) with a Headshot!", otherName, issuerid, playerName, playerid);
                    SendClientMessageToAll(COLOR_WHITE, msg);
			    }
			}
		}
    }
    return 1;
}
Both of the sendclientmessage are 37 and 40 but sendclientmessagetoall is 42 please fix it for me! )
Reply


Messages In This Thread
Please Help Me! - by BladeGamingYT - 18.10.2018, 09:07
Re: Please Help Me! - by khRamin78 - 18.10.2018, 09:18
Re: Please Help Me! - by khRamin78 - 18.10.2018, 09:20
Re: Please Help Me! - by UFF - 18.10.2018, 09:22
Re: Please Help Me! - by BladeGamingYT - 18.10.2018, 09:28
Re: Please Help Me! - by khRamin78 - 18.10.2018, 09:45

Forum Jump:


Users browsing this thread: 1 Guest(s)