error 035: argument type mismatch (argument 2)
#4

You can do most of those thing just under OnPlayerDeath.The only thing you can't know on OnPlayerDeath is the bodypart.
PHP код:
public OnPlayerDeath(playeridkilleridreason)
{
    if(
killerid != INVALID_PLAYER_ID)
    {
        new 
string[128], weapon[32], killerName[MAX_PLAYER_NAME], playerName[MAX_PLAYER_NAME],
        
Float:pXFloat:pYFloat:pZFloatPfPDistance;
        
GetPlayerName(killeridkillerNamesizeof(killerName));
        
GetPlayerName(playeridplayerNamesizeof(playerName));
        
GetWeaponName(reasonweaponsizeof(weapon));
        
GetPlayerPos(playeridpXpYpZ);
        
PfPDistance GetPlayerDistanceFromPoint(killeridpXpYpZ);
        
format(stringsizeof(string), "%s (%i) Killed %s (%i) - %s From %0.2fm Away."killerNamekilleridplayerNameplayeridweaponPfPDistance); 
        
SendClientMessageToAll(0x9D000096string); 
        
//
        
PlayerInfo[killerid][pKills]++;
    }
    
DeadPlayer[playerid] = 0;
    
SetPlayerColor(playeridCOLOR_DEAD); 
    
PlayerInfo[playerid][pDeaths]++; 
    
TextDrawHideForPlayer(playerid,Clock); 
    
TextDrawHideForPlayer(playeridDaysOfWeek); 
    
TextDrawHideForPlayer(playeridFpsAndPing[playerid]); 
    
TextDrawHideForPlayer(playeridZoneName[playerid]); 
    
HideTDs(playerid); 
    return 
1

Reply


Messages In This Thread
error 035: argument type mismatch (argument 2) - by JuzDoiT - 20.05.2017, 20:34
Re: error 035: argument type mismatch (argument 2) - by Aly - 20.05.2017, 20:40
Re: error 035: argument type mismatch (argument 2) - by JuzDoiT - 20.05.2017, 20:54
Re: error 035: argument type mismatch (argument 2) - by Aly - 20.05.2017, 21:24

Forum Jump:


Users browsing this thread: 1 Guest(s)