Need help to my first plugin ^^
#6
Line 19 of your last code is somewhat needlessly complicated. You should store PlayerPos[Player:GetUniqueID()] into a local variable and use that to query the X, Y and Z coords. This will allow you to save 2 calls into C++ and two table lookups, not to mention that the line will become much shorter.
Reply
Thanks given by:


Messages In This Thread
RE: Need help to my first plugin ^^ - by xoft - 02-16-2015, 04:29 AM
RE: Need help to my first plugin ^^ - by NiLSPACE - 02-16-2015, 05:06 AM
RE: Need help to my first plugin ^^ - by xoft - 02-16-2015, 05:14 AM



Users browsing this thread: 4 Guest(s)