SrPattif Posted March 26, 2019 Share Posted March 26, 2019 Hello friends! How are you? So. I was developing a code when I realized an error. Can someone help me? My code: local namep = player getPlayerFromName ( receber ) outputChatBox ( "#00ffffPRF: #c1c1c1Você acaba de pagar um policial!#c1c1c1!", thePlayer, 255, 255, 255, true ) outputChatBox ( "#00ffffPRF: #c1c1c1Você acaba de receber seu salário de #00ffffR$20.000#c1c1c1!", namep, 255, 255, 255, true ) givePlayerMoney ( namep, 20000 ) The error is this: [2019-03-26 15:14:58] WARNING: PRF/prf.lua:51: Bad argument @ 'givePlayerMoney' [Expected element at argument 1, got nil] [2019-03-26 15:15:04] WARNING: PRF/prf.lua:51: Bad argument @ 'givePlayerMoney' [Expected element at argument 1, got nil] Tnx Just now, _Pattif_ said: Hello friends! How are you? So. I was developing a code when I realized an error. Can someone help me? My code: local namep = player getPlayerFromName ( receber ) outputChatBox ( "#00ffffPRF: #c1c1c1Você acaba de pagar um policial!#c1c1c1!", thePlayer, 255, 255, 255, true ) outputChatBox ( "#00ffffPRF: #c1c1c1Você acaba de receber seu salário de #00ffffR$20.000#c1c1c1!", namep, 255, 255, 255, true ) givePlayerMoney ( namep, 20000 ) The error is this: [2019-03-26 15:14:58] WARNING: PRF/prf.lua:51: Bad argument @ 'givePlayerMoney' [Expected element at argument 1, got nil] Tnx Link to comment
Overkillz Posted March 26, 2019 Share Posted March 26, 2019 local namep = getPlayerFromName ( receber ) outputChatBox ( "#00ffffPRF: #c1c1c1Você acaba de pagar um policial!#c1c1c1!", thePlayer, 255, 255, 255, true ) outputChatBox ( "#00ffffPRF: #c1c1c1Você acaba de receber seu salário de #00ffffR$20.000#c1c1c1!", namep, 255, 255, 255, true ) givePlayerMoney ( namep, 20000 ) Be aware about hex on the nick. Regards. 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