[Pedido] Ganhar score e dinheiro
#4

Ex:
PHP код:
public OnPlayerDeath(playeridkilleridreason)
{
    if(
killerid != INVALID_PLAYER_ID// verifica se o "killerid" й invбlido, ou seja verifica se o jogador "playerid" se matou!
    
{
        
SetPlayerScore(killeridGetPlayerScore(killerid) + 1); // O Jogador que matou ganha +1 score
        
GivePlayerMoney(killerid100); // O jogador que matou ganha +100 dуlares
    
}
    return 
1;

@edit

O Erro a cima acontece pois vocк usou argumentos a mais que a funзгo nгo tem.
Ex:
PHP код:
SendClientMessage(playeridcolormessage[]); // Entгo chegamos a conclusгo que SendClientMessage tem 3 argumentos "playerid", "color", "message". 
Reply


Messages In This Thread
Ganhar score e dinheiro - by Brenopwn - 13.11.2016, 02:01
Re: Ganhar score e dinheiro - by VinnyScript - 13.11.2016, 02:07
Re: Ganhar score e dinheiro - by Brenopwn - 13.11.2016, 02:08
Respuesta: Ganhar score e dinheiro - by SammyJ - 13.11.2016, 10:11

Forum Jump:


Users browsing this thread: 1 Guest(s)