Thread: need help
View Single Post
  #1  
Old 07-16-2005, 12:16 PM
raiden0899 raiden0899 is offline
Registered User
raiden0899's Avatar
Join Date: Oct 2004
Posts: 192
raiden0899 is on a distinguished road
Question need help

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?
Reply With Quote