Erro no Codigo de ao Morrer Ir Ao Hospital -
EbinhO_EBN - 24.07.2012
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
AW: Erro no Codigo de ao Morrer Ir Ao Hospital -
billy the kid - 24.07.2012
double ?
eu acho que e falta de uma }
Re: Erro no Codigo de ao Morrer Ir Ao Hospital -
leonardo1434 - 24.07.2012
Tem certeza que vocк tem a include a_samp no topo do gamemode? ou nгo falta uma chave?
Re: Erro no Codigo de ao Morrer Ir Ao Hospital -
EbinhO_EBN - 24.07.2012
Bom... quase, Mas ainda deu Erros olhem
Code:
D:\Samp\GameMods\LifePremium\pawno\include\seif_walk.inc(39) : error: 004: function "Walk_OnPlayerKeyStateChange" is not implemented
D:\Samp\GameMods\LifePremium\pawno\include\servermoneyGM.inc(39) : error: 004: function "GMInit" is not implemented
D:\Samp\GameMods\LifePremium\pawno\include\servermoneyGM.inc(39) : error: 004: function "GMExit" is not implemented
D:\Samp\GameMods\LifePremium\pawno\include\servermoneyGM.inc(39) : error: 004: function "OnPlayerHaveExtraCash" is not implemented
D:\Samp\GameMods\LifePremium\gamemodes\BLP.pwn(39) : error: 004: function "split" is not implemented
D:\Samp\GameMods\LifePremium\gamemodes\BLP.pwn(39) : error: 004: function "OnPropUpdate" is not implemented
D:\Samp\GameMods\LifePremium\gamemodes\BLP.pwn(39) : error: 004: function "SaveBoxer" is not implemented
D:\Samp\GameMods\LifePremium\gamemodes\BLP.pwn(39) : error: 004: function "SaveCars" is not implemented
D:\Samp\GameMods\LifePremium\gamemodes\BLP.pwn(39) : error fatal: 107: too many error messages on one line
@Edit
¬¬ Arrumei aki era "}" -.- Tenso, mas valeu as respostas