im working on a money system and i'm trying to figure out how to change the value of the money variables. heres a part of the script:
NPC Code:
if (keypressed) {
if (strequals(#p(1),n)) {
setstring client.dollars,strtofloat(client.dollars)+=1;
}
}
when i press n, it changes dollars to "strtofloat(client.dollars)+=1" instead of raising it by 1. can someone tell me what i'm doing wrong?