• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Deathbroadcast

Faraonekkk

New Member
Joined
Feb 15, 2010
Messages
686
Reaction score
4
Code:
local STORAGE = {3944}
function onDie(cid, corpse, killer)
   if(isPlayer(cid) == TRUE) then
        doBroadcastMessage("".. getPlayerName(cid) .." has been killed at ".. getPlayerLevel(cid) .." level.", 1)
   end
    for v = 1, 5 do
     if (getPlayerStorageValue(cid, STORAGE[v]) > 0) then
       setPlayerStorageValue(cid, STORAGE[v], 0)
    end
   end
   return TRUE
end

I have error

Code:
luaDoBroadcastMessage  Not valid messageClass

can anyone help?
 
try..

LUA:
local STORAGE = {3944}
function onDie(cid, corpse, killer)
   if(isPlayer(cid) == TRUE) then
        broadcastMessage(".. getPlayerName(cid) .." has been killed at ".. getPlayerLevel(cid) .." level.", 1)
   end
    for v = 1, 5 do
     if (getPlayerStorageValue(cid, STORAGE[v]) > 0) then
       setPlayerStorageValue(cid, STORAGE[v], 0)
    end
   end
   return TRUE
end
 
Back
Top