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)