[Ajuda] ajuda por favor
#1

Gente quero tentei adicionar isso na public onplayerdeath mas da esses erros...

Код:
C:\Users\Bruno\Desktop\Brasil Top Killers\gamemodes\BTV.pwn(862) : error 017: undefined symbol "PlayerName"
C:\Users\Bruno\Desktop\Brasil Top Killers\gamemodes\BTV.pwn(870) : error 017: undefined symbol "PlayerName"
C:\Users\Bruno\Desktop\Brasil Top Killers\gamemodes\BTV.pwn(877) : error 017: undefined symbol "PlayerName"
C:\Users\Bruno\Desktop\Brasil Top Killers\gamemodes\BTV.pwn(884) : error 017: undefined symbol "PlayerName"
C:\Users\Bruno\Desktop\Brasil Top Killers\gamemodes\BTV.pwn(891) : error 017: undefined symbol "PlayerName"
C:\Users\Bruno\Desktop\Brasil Top Killers\gamemodes\BTV.pwn(898) : error 017: undefined symbol "PlayerName"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


6 Errors.
Tentei define mais nгo consigui...

isso vai no topo
Код:
new status[MAX_PLAYERS];
Код:
public OnPlayerDeath(playerid, killerid, reason)
{
new string[256];
new namep[MAX_PLAYER_NAME];
new namem[MAX_PLAYER_NAME];
GetPlayerName(killerid, namep, sizeof(namep));
GetPlayerName(playerid, namem, sizeof(namem));

SendDeathMessage(killerid, playerid, reason);
if(!status[killerid])
{
}
else
{
if(status[killerid]  == 5)
{
format(string, sizeof(string), "* %s ja mandou 5 para o caixгo!", PlayerName(killerid));
SendClientMessageToAll(0xb9eec0AA, string);
GivePlayerMoney(killerid, 2000);
SendClientMessage(killerid,0xd6deacAA,"* Parabйns! Vocк ganhou 2000 R$ por matar 5 Pessoas!");
}

else if(status[killerid] == 10)
{
format(string, sizeof(string), "* %s estб muito perigoso, ja matou 10!", PlayerName(killerid));
SendClientMessageToAll(0xb9eec0AA, string);
GivePlayerMoney(killerid, 4000);
SendClientMessage(killerid,0xd6deacAA,"* Parabйns! Vocк ganhou 4000 R$ por matar 10 Pessoas!");
}
else if(status[killerid] == 20)
{
format(string, sizeof(string), "* %s este й foda, ja matou 20!", PlayerName(killerid));
SendClientMessageToAll(0xb9eec0AA, string);
GivePlayerMoney(killerid, 6000);
SendClientMessage(killerid,0xd6deacAA,"* Parabйns! Vocк ganhou 6000 R$ por matar 20 Pessoas!");
}
else if(status[killerid] == 30)
{
format(string, sizeof(string), "* %s acho que й da organizaзгo alqaeda, ja matou 30!", PlayerName(killerid));
SendClientMessageToAll(0xb9eec0AA, string);
GivePlayerMoney(killerid, 8000);
SendClientMessage(killerid,0xd6deacAA,"* Parabйns! Vocк ganhou 8000 R$ por matar 30 Pessoas!");
}
else if(status[killerid] == 40)
{
format(string, sizeof(string), "* %s й irmгo de Osama Bindalem, ja arrancou 40 cabeзas!", PlayerName(killerid));
SendClientMessageToAll(0xb9eec0AA, string);
GivePlayerMoney(killerid, 10000);
SendClientMessage(killerid,0xd6deacAA,"* Parabйns! Vocк ganhou 10000 R$ por matar 40 Pessoas!");
}
else if(status[killerid] == 50)
{
format(string, sizeof(string), "* %s fes pacto com o diabo, ja matou 50!", PlayerName(killerid));
SendClientMessageToAll(0xb9eec0AA, string);
GivePlayerMoney(killerid, 20000);
SendClientMessage(killerid,0xd6deacAA,"* Parabйns! Vocк ganhou 20000 R$ por matar 50 Pessoas!");
}
}

return 1;
}
Por favor me ajudem.
Reply
#2

@Edit
Oh god, nгo tinha visto o code, usa o do FuneraL \/
Reply
#3

pawn Код:
stock PlayerName(playerid)
{
     new NomeP[24];
     GetPlayerName(playerid, NomeP, sizeof(NomeP));
     return NomeP;
}
Coloque isso em seu gamemode e tente compilar
Reply
#4

lol, jб tinham postado .
Reply
#5

pawn Код:
stock PlayerName(playerid)
{
new Name[MAX_PLAYER_NAME];
GetPlayerName(playerid, Name, sizeof(Name));
return Name;
}
Final do gamemode.
Reply
#6

Vlw "Edu33" , ".FuneraL." e viitor daay
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)