View Single Post
  #7  
Old 01-18-2017, 02:24 PM
Chaos77777 Chaos77777 is offline
Member
 
Join Date: Jan 2017
Posts: 43
Gender: Male
Credits: 4,574
Chaos77777 is on a distinguished road
Default

Lol, well I thought I could figure it out for myself. I guess not :(
I'm wanting it to reward the owner 1 percent of the cost of the adopt.
I tried a bunch of different variations of
$owner->changecash($mysidia->adopt->cost);


But it keeps saying it's a non numeric value.

I tried using
$owner->changecash($mysidia->adopt->cost * .01);
It doesn't give me any errors, but it doesn't actually increase the money.

$owner->changecash(1);
This one above works just fine, but I set up a rarity system. (I got lucky making it work) and want people who own rarer adopts get a better reward. Any clue?

I looked around in pound and poundview to see how it works in there, since that also uses a percentage system, but I'm not having any luck using any of those

Last edited by Chaos77777; 01-18-2017 at 02:47 PM.
Reply With Quote