[GD]sXe Posted May 8, 2015 Share Posted May 8, 2015 Hi guys, function giris (player) outputChatBox ("#990000*#138a17<"..getPlayerName..(player)"#138a17>#13adadAdlı Oyuncu #990000Hesabına #ff0000Giriş #ffffffYaptı.",getRootElement(),0,0,0,true) end addEventHandler ("onPlayerLogin", getRootElement(), giris) function cikis (player) outputChatBox ("#990000*#138a17<"..getPlayerName..(player)"#138a17>#13adadAdlı Oyuncu #990000Hesabından #ff0000Çıkış #ffffffYaptı.",getRootElement(),0,0,0,true) end addEventHandler ("onPlayerLogout", getRootElement(), cikis) Not Working,Error İs [2015-05-08 17:30:55] ERROR: loginout\server.lua:2: attempt to call local 'player' (a string value) I tried it but not working ..getPlayerName..(source) Link to comment
TAPL Posted May 8, 2015 Share Posted May 8, 2015 source should work, if it didn't appear in the chat it may be your text is too long. Link to comment
ali Posted May 8, 2015 Share Posted May 8, 2015 function giris () outputChatBox ("#990000*#138a17<"..getPlayerName(source).."#138a17>#13adadAdlı Oyuncu #990000Hesabına #ff0000Giriş #ffffffYaptı.",getRootElement(),0,0,0,true) end addEventHandler ("onPlayerLogin", getRootElement(), giris) function cikis () outputChatBox ("#990000*#138a17<"..getPlayerName(source).."#138a17>#13adadAdlı Oyuncu #990000Hesabından #ff0000Çıkış #ffffffYaptı.",getRootElement(),0,0,0,true) end addEventHandler ("onPlayerLogout", getRootElement(), cikis) Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now