View Single Post
  #2  
Old 05-14-2002, 09:06 PM
Falcor Falcor is offline
Darth Cucumber
Falcor's Avatar
Join Date: Mar 2001
Location: At School
Posts: 2,874
Falcor is on a distinguished road
Send a message via ICQ to Falcor Send a message via AIM to Falcor Send a message via MSN to Falcor Send a message via Yahoo to Falcor
I assume you mispelled the string prefix.
NPC Code:

setstring client.fp,#v(strtofloat(#s(client.fp)) + ammount);



That will add an ammount to your firepoints (assuming ammount is the variable you wish to add to the firepoints.). now as for converting the string into a variable it is simple.

NPC Code:

variable = strtofloat(#s(client.fp));



If this is for p2p i would suggest you use serverside triggeractions to edit a clientr. string instead of client. since client strings are easily hacked. You can use prefixed strings on non-p2p worlds. they just work like regular strings without an NPCs server (except for the obviouse server. prefix)

[edit] I have a habbit of editing my post multiple times after i post it [/edit]
__________________

subliminal message: 1+1=3
Reply With Quote