noonbr Posted October 15, 2019 Share Posted October 15, 2019 Olá. Estou enfrentado outro problema, não faz sentido isso acontecer. function byType(vehicle, player) local var = getElementType(vehicle) outputChatBox("Bom jogo.", player) end addCommandHandler("type", byTipe) O erro é: WARNING: [SS]\CNH\CNH.Lua:101 Bad argument @ 'outputChatBox' [Expected element at argument 2, got string 'type']. Eu não sei mais o que fazer, sem alguém puder dar uma luz, por favor. Retribuo com 'Thanks'. Link to comment
Eficiencia Posted October 15, 2019 Share Posted October 15, 2019 function byType(vehicle) local var = getElementType(vehicle) outputChatBox("Bom jogo.", source) end addCommandHandler("type", byTipe) Tenta isso 1 Link to comment
DNL291 Posted October 15, 2019 Share Posted October 15, 2019 Parâmetros da função addCommandHandler (server-side): player playerSource, string commandName [, string arg1, string arg2, ... ] Ou seja, faz todo sentido acontecer. 1 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