Quote:
Originally posted by dragoonvenganc
lol sorry u said make it so it donates not does it all try this one
if (startswith(Donation,#c)){tokenize #c;
if (playerrupees<=strtofloat(#t(1))){playerrupees=pla yerrupees-#t(1);
setstring donation,#v(#s(donation)+#t(1));
setplayerprop #c, Thank you for Donating;}
else setplayerprop #c, Sorry you do not have enough money;}
try that one
And the 2 forum thing.. because he messed up.. USE ONE FORUM OR DO NOT POST
hope this helps
|
I think u have to use strtofloat in the setstring part too
if (startswith(Donation,#c)){tokenize #c;
if (playerrupees<=strtofloat(#t(1))){playerrupees=pla yerrupees-#t(1);
setstring donation,#v(strtofloat(#s(donation))+strtofloat(#t (1)));
setplayerprop #c, Thank you for Donating;}
else setplayerprop #c, Sorry you do not have enough money;}