hey i made this and it doesnt give any error:S help?
addEvent ("Showdisc", true)
function showDisco ()
local Pnick = getPlayerName( source )
if ( getPlayerMoney (source) >= 0 ) then
takePlayerMoney(source, 0)
x,y,z = getElementPosition( source )
createObject ( 18102, x, y, z, 0, 0, 0 )
outputChatBox( Pnick.. " started the disco for $500, Have fun", source, 255, 255, 0, true)
end
addCommandHandler("buy disco",showDisco)
end