Jump to content

I NEED HELP! omg!


SrPattif

Recommended Posts

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 xD

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
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...