Re: SSGM Chat Hook [message #274712 is a reply to message #274298] |
Sat, 21 July 2007 12:07  |
 |
reborn
Messages: 3231 Registered: September 2004 Location: uk - london
Karma:
|
General (3 Stars) |
|
|
You are declaring the variables "Donater" and "Receiver". "GameObject *" is the data type.
So you do not refer to the variable as "*Donater" and "*Receiver", just take those "*" bits off everywhere apart from where you are declaring it, as that is actually part of the data type declaration, and not the variable name.
Also I would do "Commands->Give_Money(Donater,(Amt * -1),false)", and "Commands->Give_Money(Reciever,(Amt * 1),false)".
There is more wrong too, but I have to go visit my mum now.
|
|
|