[Pedido] Quando jogador morrer, voltar pro local da morte com anime.
#5

Quote:
Originally Posted by ipsBruno
Посмотреть сообщение
Quando morrer?

pawn Код:
new pTimer [ MAX_PLAYERS ] = {-1, ...};

public OnPlayerDeath(playerid, killerid, reason){

    static Float: pos[3] ;
    GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
 
    pTimer[playerid] = SetTimerEx("VoltarPos", 5000, false, "fffi",pos[0], pos[1], pos[2], playerid);

    return true ;
}

forward VoltarPos(Float:x, Float:y, Float:z, i);
public VoltarPos(Float:x, Float:y, Float:z,  i) {

    SetPlayerPos(i, x, y, z);
    ApplyAnimation(i, "CRACK", "crckdeth2", 4.1,1,1,1,1,1,1);
    pTimer[i] = -1;

    return 1;
}
Para evitar problemas caso o jogador desconectar e pegar o id errado. Use KillTimer(pTimer[playerid] ); quando ele desconecta

-* Tem um jeito melhor trabalhando com OnPlayerSpawn. Mas fiz por timer mesmo. *-
#nгotestei

Eu acho que coloquei algo errado



Код:
C:\Users\Hermes\Desktop\Brasil Mбfia RPG\Brasil Magic Games\gamemodes\BMG.pwn(4548) : warning 219: local variable "price" shadows a variable at a preceding level
C:\Users\Hermes\Desktop\Brasil Mбfia RPG\Brasil Magic Games\gamemodes\BMG.pwn(4590) : warning 219: local variable "price" shadows a variable at a preceding level
C:\Users\Hermes\Desktop\Brasil Mбfia RPG\Brasil Magic Games\gamemodes\BMG.pwn(4632) : warning 219: local variable "price" shadows a variable at a preceding level
C:\Users\Hermes\Desktop\Brasil Mбfia RPG\Brasil Magic Games\gamemodes\BMG.pwn(4954) : warning 219: local variable "price" shadows a variable at a preceding level
C:\Users\Hermes\Desktop\Brasil Mбfia RPG\Brasil Magic Games\gamemodes\BMG.pwn(6734) : warning 219: local variable "caller" shadows a variable at a preceding level
C:\Users\Hermes\Desktop\Brasil Mбfia RPG\Brasil Magic Games\gamemodes\BMG.pwn(7411) : error 021: symbol already defined: "SendDeathMessage"
C:\Users\Hermes\Desktop\Brasil Mбfia RPG\Brasil Magic Games\gamemodes\BMG.pwn(7421) : error 010: invalid function or declaration
C:\Users\Hermes\Desktop\Brasil Mбfia RPG\Brasil Magic Games\gamemodes\BMG.pwn(7422) : warning 218: old style prototypes used with optional semicolumns
C:\Users\Hermes\Desktop\Brasil Mбfia RPG\Brasil Magic Games\gamemodes\BMG.pwn(7423) : warning 218: old style prototypes used with optional semicolumns
C:\Users\Hermes\Desktop\Brasil Mбfia RPG\Brasil Magic Games\gamemodes\BMG.pwn(7425) : error 010: invalid function or declaration
C:\Users\Hermes\Desktop\Brasil Mбfia RPG\Brasil Magic Games\gamemodes\BMG.pwn(7429) : error 010: invalid function or declaration
C:\Users\Hermes\Desktop\Brasil Mбfia RPG\Brasil Magic Games\gamemodes\BMG.pwn(7431) : warning 218: old style prototypes used with optional semicolumns
C:\Users\Hermes\Desktop\Brasil Mбfia RPG\Brasil Magic Games\gamemodes\BMG.pwn(7432) : error 054: unmatched closing brace ("}")
C:\Users\Hermes\Desktop\Brasil Mбfia RPG\Brasil Magic Games\gamemodes\BMG.pwn(7433) : error 010: invalid function or declaration
C:\Users\Hermes\Desktop\Brasil Mбfia RPG\Brasil Magic Games\gamemodes\BMG.pwn(7435) : warning 218: old style prototypes used with optional semicolumns
C:\Users\Hermes\Desktop\Brasil Mбfia RPG\Brasil Magic Games\gamemodes\BMG.pwn(7436) : error 010: invalid function or declaration
C:\Users\Hermes\Desktop\Brasil Mбfia RPG\Brasil Magic Games\gamemodes\BMG.pwn(7438) : error 010: invalid function or declaration
C:\Users\Hermes\Desktop\Brasil Mбfia RPG\Brasil Magic Games\gamemodes\BMG.pwn(7440) : error 010: invalid function or declaration
C:\Users\Hermes\Desktop\Brasil Mбfia RPG\Brasil Magic Games\gamemodes\BMG.pwn(7442) : error 010: invalid function or declaration
C:\Users\Hermes\Desktop\Brasil Mбfia RPG\Brasil Magic Games\gamemodes\BMG.pwn(7446) : error 010: invalid function or declaration
C:\Users\Hermes\Desktop\Brasil Mбfia RPG\Brasil Magic Games\gamemodes\BMG.pwn(7451) : error 010: invalid function or declaration
C:\Users\Hermes\Desktop\Brasil Mбfia RPG\Brasil Magic Games\gamemodes\BMG.pwn(7453) : error 010: invalid function or declaration
C:\Users\Hermes\Desktop\Brasil Mбfia RPG\Brasil Magic Games\gamemodes\BMG.pwn(7457) : error 010: invalid function or declaration
C:\Users\Hermes\Desktop\Brasil Mбfia RPG\Brasil Magic Games\gamemodes\BMG.pwn(7462) : error 010: invalid function or declaration
C:\Users\Hermes\Desktop\Brasil Mбfia RPG\Brasil Magic Games\gamemodes\BMG.pwn(7464) : error 010: invalid function or declaration
C:\Users\Hermes\Desktop\Brasil Mбfia RPG\Brasil Magic Games\gamemodes\BMG.pwn(7468) : error 010: invalid function or declaration
C:\Users\Hermes\Desktop\Brasil Mбfia RPG\Brasil Magic Games\gamemodes\BMG.pwn(7475) : error 010: invalid function or declaration
C:\Users\Hermes\Desktop\Brasil Mбfia RPG\Brasil Magic Games\gamemodes\BMG.pwn(7479) : error 017: undefined symbol "playerid"
C:\Users\Hermes\Desktop\Brasil Mбfia RPG\Brasil Magic Games\gamemodes\BMG.pwn(7479) : error 008: must be a constant expression; assumed zero
C:\Users\Hermes\Desktop\Brasil Mбfia RPG\Brasil Magic Games\gamemodes\BMG.pwn(7480) : error 010: invalid function or declaration
C:\Users\Hermes\Desktop\Brasil Mбfia RPG\Brasil Magic Games\gamemodes\BMG.pwn(7485) : error 021: symbol already defined: "GivePlayerMoneyEx"
C:\Users\Hermes\Desktop\Brasil Mбfia RPG\Brasil Magic Games\gamemodes\BMG.pwn(7485) : error 029: invalid expression, assumed zero
C:\Users\Hermes\Desktop\Brasil Mбfia RPG\Brasil Magic Games\gamemodes\BMG.pwn(7487) : error 021: symbol already defined: "GivePlayerMoneyEx"
C:\Users\Hermes\Desktop\Brasil Mбfia RPG\Brasil Magic Games\gamemodes\BMG.pwn(7487) : warning 215: expression has no effect
C:\Users\Hermes\Desktop\Brasil Mбfia RPG\Brasil Magic Games\gamemodes\BMG.pwn(7487) : error 001: expected token: ";", but found ")"
C:\Users\Hermes\Desktop\Brasil Mбfia RPG\Brasil Magic Games\gamemodes\BMG.pwn(7499) : error 010: invalid function or declaration

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


26 Errors.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)