addCommandHandler ("s",
function(player)
getPlayerName(player)
outputChatBox(getPlayerName(player)player":Siema!")
end
)
I want this script to output a chat message after showing who player is typing.
<player>:"Siema!"
not
Siema! <player>
addCommandHandler ("s",
function(playerSource)
outputChatBox(getPlayerName(playerSource),playerSource ":Siema!")
end
) i think im closer to solving this.
function
outputChatBox ( "No hejka", getRootElement(), 255, 255, 255, true )
end
addEventHandler ( "onPlayerSpawn", getRootElement(), player_Spawn )
How can i fix this?
ERROR: Loading script failed: [gameplay]/pierwszyskrypt/client.lua:2: name> or '...' expected near '"No hejka"'