Thread: string problem
View Single Post
  #10  
Old 02-05-2002, 08:20 AM
TDK_RC6 TDK_RC6 is offline
Registered User
TDK_RC6's Avatar
Join Date: Jan 2002
Location: Earth
Posts: 0
TDK_RC6 is on a distinguished road
try thisGohan43331

NPC Code:

// Example:
if (playertouchsme) {
if (strequals(#c,balance)) {
say2 Greetings. Your balance is: #v(strtofloat(brbank));
}
tokenize #c;
if (tokenscount==2&&strequals(#t(0),deposit)&&playerr upees>=strtofloat(#t(1))&&strtofloat(#t(1))>0) {
this.brbanktemp=strtofloat(#s(brbank))+strtofloat( #t(1));
playerrupees-=strtofloat(#t(1));
setstring brbank,#v(this.brbanktemp);
say2 Deposited #t(1) gralats.#bBalance is now #v(strtofloat(#s(brbank)));
}
}

__________________
Staff on Renegade


email: [email protected]
aim: papivicente
Reply With Quote