Yeah, i'm having quite a problem here, and I can't figure out how to fix it. I've made this command to have the syntax: /givecash [name] [amount], but it's not working how I thought it would. I've transferred from SA:MP & PAWNO, so this is pretty difficult for me. Any help is appreciated.
function GivePlayerMoney(thePlayer, command, amount)
if(amount <= 500) then
givePlayerMoney(thePlayer, amount)
else if(amount > 500) then
outputChatBox("Invalid amount. (Amount is greater than $500)")
end
end
end
addCommandHandler("givecash", GivePlayerMoney)