[Ajuda] Erro no Codigo de ao Morrer Ir Ao Hospital
#1

Bom, tive ae a uns dias, pedindo um code, de ao morrer, ser teleportado ao hospital, Tenho o lugar e tal, colokei o code ki vo mostrar, mas deu 26 erros Me Ajudem Ae pf.

pawn Code:
new death[MAX_PLAYERS];

public OnPlayerDeath(playerid,killerid,reason){
    death[playerid] = 1;
    return 1;
}

public OnPlayerSpawn(playerid){
    if(death[playerid] == 1){
        SetPlayerPos(playerid,X,Y,Z);
        SetPlayerInt(playerid,INT);
        SendClientMessage(playerid,-1,"Voce foi para o hospital e esta sendo curado");
        ApplyAnimation(playerid,/* LIB DA ANIM */,/* NOME DA ANIM*/,4.1,1,1,1,1,/*TEMPO DA DURAЗГO DA ANIM*/);
        //GivePlayerMoney(playerid,-100); caso queira tirar dinheiro
        death[playerid] = 0;
    }
    return 1;
}
ai o Codigo ki me indicaram. mas deu os seguintes erros

Code:
D:\Samp\GameMods\BLP\gamemodes\Test.pwn(191) : error: 017: undefined symbol "ebn"
D:\Samp\GameMods\BLP\gamemodes\Test.pwn(191) : warning: 217: loose indentation
D:\Samp\GameMods\BLP\gamemodes\Test.pwn(191) : error: 029: invalid expression, assumed zero
D:\Samp\GameMods\BLP\gamemodes\Test.pwn(191) : error: 004: function "OnPlayerDeath" is not implemented
D:\Samp\GameMods\BLP\gamemodes\Test.pwn(191) : warning: 225: unreachable code
D:\Samp\GameMods\BLP\gamemodes\Test.pwn(191) : error: 029: invalid expression, assumed zero
D:\Samp\GameMods\BLP\gamemodes\Test.pwn(191) : error: 004: function "OnVehicleSpawn" is not implemented
D:\Samp\GameMods\BLP\gamemodes\Test.pwn(191) : warning: 225: unreachable code
D:\Samp\GameMods\BLP\gamemodes\Test.pwn(191) : error: 029: invalid expression, assumed zero
D:\Samp\GameMods\BLP\gamemodes\Test.pwn(191) : error: 004: function "OnVehicleDeath" is not implemented
D:\Samp\GameMods\BLP\gamemodes\Test.pwn(191) : warning: 225: unreachable code
D:\Samp\GameMods\BLP\gamemodes\Test.pwn(191) : error: 029: invalid expression, assumed zero
D:\Samp\GameMods\BLP\gamemodes\Test.pwn(191) : error: 004: function "OnPlayerText" is not implemented
D:\Samp\GameMods\BLP\gamemodes\Test.pwn(191) : warning: 225: unreachable code
D:\Samp\GameMods\BLP\gamemodes\Test.pwn(191) : error: 029: invalid expression, assumed zero
D:\Samp\GameMods\BLP\gamemodes\Test.pwn(191) : error: 004: function "OnPlayerCommandText" is not implemented
D:\Samp\GameMods\BLP\gamemodes\Test.pwn(191) : error: 017: undefined symbol "cmdtext"
D:\Samp\GameMods\BLP\gamemodes\Test.pwn(191) : warning: 225: unreachable code
D:\Samp\GameMods\BLP\gamemodes\Test.pwn(191) : error: 029: invalid expression, assumed zero
D:\Samp\GameMods\BLP\gamemodes\Test.pwn(191) : error: 004: function "OnPlayerEnterVehicle" is not implemented
D:\Samp\GameMods\BLP\gamemodes\Test.pwn(191) : warning: 225: unreachable code
D:\Samp\GameMods\BLP\gamemodes\Test.pwn(191) : error: 029: invalid expression, assumed zero
D:\Samp\GameMods\BLP\gamemodes\Test.pwn(191) : error: 004: function "OnPlayerExitVehicle" is not implemented
D:\Samp\GameMods\BLP\gamemodes\Test.pwn(191) : warning: 225: unreachable code
D:\Samp\GameMods\BLP\gamemodes\Test.pwn(191) : error: 029: invalid expression, assumed zero
D:\Samp\GameMods\BLP\gamemodes\Test.pwn(191) : error: 004: function "OnPlayerStateChange" is not implemented
D:\Samp\GameMods\BLP\gamemodes\Test.pwn(191) : warning: 225: unreachable code
D:\Samp\GameMods\BLP\gamemodes\Test.pwn(191) : error: 029: invalid expression, assumed zero
D:\Samp\GameMods\BLP\gamemodes\Test.pwn(191) : error: 004: function "OnPlayerEnterCheckpoint" is not implemented
D:\Samp\GameMods\BLP\gamemodes\Test.pwn(191) : warning: 225: unreachable code
D:\Samp\GameMods\BLP\gamemodes\Test.pwn(191) : error: 029: invalid expression, assumed zero
D:\Samp\GameMods\BLP\gamemodes\Test.pwn(191) : error: 004: function "OnPlayerLeaveCheckpoint" is not implemented
D:\Samp\GameMods\BLP\gamemodes\Test.pwn(191) : warning: 225: unreachable code
D:\Samp\GameMods\BLP\gamemodes\Test.pwn(191) : error: 029: invalid expression, assumed zero
D:\Samp\GameMods\BLP\gamemodes\Test.pwn(191) : error: 004: function "OnPlayerEnterRaceCheckpoint" is not implemented
D:\Samp\GameMods\BLP\gamemodes\Test.pwn(191) : warning: 225: unreachable code
D:\Samp\GameMods\BLP\gamemodes\Test.pwn(191) : error: 029: invalid expression, assumed zero
D:\Samp\GameMods\BLP\gamemodes\Test.pwn(191) : error: 004: function "OnPlayerLeaveRaceCheckpoint" is not implemented
Me Ajudem ae, Presciso muito disso, ja tentei solucionar, mas nao tem geito.
quero ki ele teleporte prai 1935.4089,-2110.2100,-19.3109 e vou colocar uma animacao.
Obrigado
Reply


Messages In This Thread
Erro no Codigo de ao Morrer Ir Ao Hospital - by EbinhO_EBN - 24.07.2012, 21:04
AW: Erro no Codigo de ao Morrer Ir Ao Hospital - by billy the kid - 24.07.2012, 21:06
Re: Erro no Codigo de ao Morrer Ir Ao Hospital - by leonardo1434 - 24.07.2012, 21:07
Re: Erro no Codigo de ao Morrer Ir Ao Hospital - by EbinhO_EBN - 24.07.2012, 21:30

Forum Jump:


Users browsing this thread: 2 Guest(s)