ID:180409
Jul 2 2001, 5:12 pm
|
|
how can i make a donate dimes verb?
|
On 7/2/01 8:12 pm Sariat wrote:
how can i make a donate dimes verb? mob/verb/donate() client.PayDimes(1,"Shadowdarke","Donate a dime!") It is absolutely critical that you copy and paste it exactly as is without bothering to look it up in the reference and see what is actually going to happen ;) <font color = #550000 size=1>Is this evil?</font> |
In response to Shadowdarke
|
|
On 7/2/01 9:52 pm Shadowdarke wrote:
On 7/2/01 8:12 pm Sariat wrote: Bah, leave it to Darke to accidentally make all sorts of silly syntactical errors. That code'll make the compiler cough up a metric slew of errors. Try this instead: mob/verb/donate() client.PayDimes(100,"Leftley","Donate a dime!") <font color = #550000 size=1>No.</font> |
In response to Shadowdarke
|
|
mob/verb/donate() No no! You've got it all wrong! mob/verb/donate() var/list/listdimes = list(1, 5, 10) var/dimes = input(src, "How many dimes?", "How many BYONDimes do you wish to donate?" , "1") in listdimes client.PayDimes(dimes,"Vortezz","Donate a dime!") If ya can't figure out what's wrong with that, and correct it, then you've got problems. [EDIT: Even though it looks uneven there, you don't have to fix ANYTHING. It's a cut & paste code!] Mine's the best, because it allows the user to CHOOSE how many BYONDimes they want to donate! Spiffy, eh? |
In response to Vortezz
|
|
On 7/2/01 10:08 pm Vortezz wrote:
mob/verb/donate() No Vortezz,you very off with that code this code will let them type exactly how many they want to donate : mob/verb/Donate_Byond_Dimes(ammount as num) set category = "Donations" if(usr.client.PayDimes(ammount,"Darkness")) with this they can donate exactly the amout they want =) P.S you must keep it exacly like that for it to work exspecially the Letters D A R K N E S S. Have a nice day. |
In response to Darkness
|
|
P.S you must keep it exacly like that for it to work exspecially the Letters D A R K N E S S. Have a nice day. Well, it was less obvious until you pointed it out so well, Darkness. =P <font size=1 color=darkred>Wasn't evil, believe me. I would've tried the same thing if you hadn't beaten me to it! >=D</font> |
In response to Leftley
|
|
<font color = #550000 size=1>Nice Almost Hidden MSG.</font>
|
In response to LexyBitch
|
|
Give me money.
|
By looking up the PayDimes() proc in the help guide and reading it very, very carefully.