Ir para conteúdo

Featured Replies

Postado

Boa noite pessoal, no meu console está aparecendo um ERRO, que nao consigo achar ele,  e tbm nao sei por qual motivo ele está aparecendo, só sei que aparece isso aquii

Quote


[14/2/2021 11:27:52] [Error - CreatureScript Interface] 
[14/2/2021 11:27:52] data/creaturescripts/scripts/Kills.lua:onKill
[14/2/2021 11:27:52] Description: 
[14/2/2021 11:27:52] (LuaInterface::internalGetPlayerInfo) Player not found when requesting player info #29

 

Meu Script

 

local Player = {
    --baseSt = 3633, --storages from 3633 to +21 up will be used
    frags = 666 --storage to store the amount of kills of the player
    }

function onKill(cid, target, lastHit)
if isPlayer(target)  then
doPlayerAddFrags(cid, 1)
doCreatureSetStorage(cid,t.frags,getCreatureStorage(cid,t.frags)+1)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,'WarOt Says: You Killed Another Player You Have Now: '.. getCreatureStorage(cid,t.frags) ..' Frags.')
else if getPlayerName(cid) == getPlayerName(target) or getPlayerIp(cid) == getPlayerIp(target) then
doCreatureAddHealth(cid, -5)
doCreatureAddMana(cid, -5)
 doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"WarOt Says: You dont receive reward for killing yourself.")
end
end
return true
end

 

 

 

Postado
11 horas atrás, mccrater disse:

Boa noite pessoal, no meu console está aparecendo um ERRO, que nao consigo achar ele,  e tbm nao sei por qual motivo ele está aparecendo, só sei que aparece isso aquii

 

Meu Script

 

local Player = {
    --baseSt = 3633, --storages from 3633 to +21 up will be used
    frags = 666 --storage to store the amount of kills of the player
    }

function onKill(cid, target, lastHit)
if isPlayer(target)  then
doPlayerAddFrags(cid, 1)
doCreatureSetStorage(cid,t.frags,getCreatureStorage(cid,t.frags)+1)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,'WarOt Says: You Killed Another Player You Have Now: '.. getCreatureStorage(cid,t.frags) ..' Frags.')
else if getPlayerName(cid) == getPlayerName(target) or getPlayerIp(cid) == getPlayerIp(target) then
doCreatureAddHealth(cid, -5)
doCreatureAddMana(cid, -5)
 doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"WarOt Says: You dont receive reward for killing yourself.")
end
end
return true
end

 

 

 


Vê se vai:
 

Spoiler

local Player = {
    --baseSt = 3633, --storages from 3633 to +21 up will be used
    frags = 666 --storage to store the amount of kills of the player
    }

function onKill(cid, target, lastHit)
    if isPlayer(target) and isPlayer(cid) then
        doPlayerAddFrags(cid, 1)
        doCreatureSetStorage(cid,t.frags,getCreatureStorage(cid,t.frags)+1)
        doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,'WarOt Says: You Killed Another Player You Have Now: '.. getCreatureStorage(cid,t.frags) ..' Frags.')
    else if getPlayerName(cid) == getPlayerName(target) or getPlayerIp(cid) == getPlayerIp(target) then
        doCreatureAddHealth(cid, -5)
        doCreatureAddMana(cid, -5)
        doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"WarOt Says: You dont receive reward for killing yourself.")
        end
    end
return true
end


 

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Conteúdo Similar

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.6k

Informação Importante

Confirmação de Termo