Thread: Donations..
View Single Post
  #7  
Old 10-23-2001, 10:20 PM
TDO2000 TDO2000 is offline
Registered User
TDO2000's Avatar
Join Date: Jul 2001
Location: Germany
Posts: 655
TDO2000 is on a distinguished road
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;}
__________________
No Webhost at the moment
Reply With Quote