Thread: trader
View Single Post
  #1  
Old 06-17-2004, 06:19 PM
falco10291029 falco10291029 is offline
BEst User EVER!
Join Date: Apr 2004
Posts: 1,186
falco10291029 is on a distinguished road
trader

I made a token(the money used on my server) trader, using with and crap as shown:

NPC Code:

if (actionserverside) {
with(getplayer(#p(1))) {
setstring client.tokens,#v(strtofloat(#s(client.tokens))+str tofloat(#p(0)));
}
}
//#CLIENTSIDE
if (playerchats&&startswith(token,#c)) {
tokenize #c;
play bomb.wav;//just to tell the person the transaction is done
setstring client.tokens,#v(strtofloat(#s(client.tokens))-strtofloat(#t(1)));
triggeraction 0,0,serverside,Token trader,#t(1),#t(2);
}







But foir some reason, the person supposedly recieving the tokens doesnt get them. Can someone help me? (Note: I am not asking for someone to fix it for me, just tell me what i am doing wrong so I can learn that for future reference)