[Ajuda] ChattKill
#7

Faz um "debug" para ver os valores que estгo sendo passados.

PHP код:
public OnPlayerDeath(playeridkilleridreason)
{
    if( 
Player[playerid][pLogged] == true 
    { 
        
Player[killerid][pMatou]++; 
        
Player[killerid][pMonthKills] ++; 
        
GivePlayerMoney(killerid100); 
        
Server[Kills] += 1
        
    }

    new 
str[80];
    
format(strsizeof(str), "[debug] killerid:%d, playerid:%d, reason:%d"killeridplayeridreason) );
    
SendClientMessage(playerid, -1str)
    ;
    
SendDeathMessage(killeridplayeridreason); 
    return 
true;

Reply


Messages In This Thread
ChattKill - by FStralioti - 18.04.2018, 00:38
Re: ChattKill - by SpikeCompiler - 18.04.2018, 01:05
Re: ChattKill - by JohnBlack - 18.04.2018, 01:52
Re: ChattKill - by PilateGR - 18.04.2018, 02:02
Re: ChattKill - by FStralioti - 18.04.2018, 03:11
Re: ChattKill - by PilateGR - 18.04.2018, 12:49
Re: ChattKill - by SammyJ - 18.04.2018, 13:05

Forum Jump:


Users browsing this thread: 1 Guest(s)