Quote:
Originally posted by Stefan
Arg you are using 'temp' ? that will send a lot of data to the player x-x And it still doesnt tell me what should be wrong. A code example of the bug would be good
|
Ok, now I am using this.temp, but we are going off-topic here.
Tyhm told me sometime that only LATs are allowed to see the scripts used on Classic, so I won't post it here, but, like I wrote before, you can look at it on Classic Developement, it's in the -System/Trading weapon.
(I tried sending it to you using a PM, but it was 10 times too huge for a forum PM).
However, this is a very short version of it:
NPC Code:
if (actionserverside) {
hatnum = strtofloat(#p(0));
putnpc2 playerx,playery+2,{join hats;};
with (npcs[npcscount-1]) {
this.hat = strtofloat(#I(clientr.hats,hatnum));
deletestring clientr.hats,hatnum; // <- always delets #0
callnpc -1,updategani;
}
}
//#CLIENTSIDE
if (weaponfired) triggeraction 0,0,serverside,DeleteTest,2;
Quote:
Originally posted by CheeToS2
Oh.. you said the following 6 lines.. but they didn't follow that text
|
No, I meant the following six lines in the script and not in my post.