I made a “sell fish” script, but it doesn’t work ^^’.
tell me what’s wrong (all i think):
if (playerchats&&strequals(#c,sell fish)){
playerrupees += (2 *= #s(pound));
#s(pound) -= #s(pound);
}
I made a “sell fish” script, but it doesn’t work ^^’.
tell me what’s wrong (all i think):
if (playerchats&&strequals(#c,sell fish)){
playerrupees += (2 *= #s(pound));
#s(pound) -= #s(pound);
}
if (playerchats&&strequals(#c,sell fish)){
playerrupees += (2*strtofloat(#s(pound)));
setstring pound,0;
}
You should really be using variables and not strings for numbers though.
Edit: Don’t use variables as they won’t save to your account -doh-
Thx A lot
[QUOTE=Agret;11875]
if (playerchats&&strequals(#c,sell fish)){
playerrupees += (2*strtofloat(#s(pound)));
setstring pound,0;
}
You should really be using variables and not strings for numbers though.
[/QUOTE]
Variables wouldn’t save, I would recommend strings in the case of currencies / items.
Okay, my bad. Will Edit my post now.