![]() |
getplayer
with(getplayer(params[1])) ..ive tried that and it doesnt work on gs2...is there another way instead of getplayer() now in GS2?
|
findplayer
|
with(findPlayer(params[1])){
// } would work? |
its not working :'(
|
Don't need to use with?
Code taken out by Damix =D Ok Stefan, I'm still learning too ^^ |
NPC Code: Message in RC: Quote:
|
Quote:
Quote:
Why not just use findPlayer(account).clientr.kills ++? |
Additionally,
temp.player = findplayer(params[1]); temp.player.chat = "foo"; temp.player.clientr.kills ++; Certainly findplayer acts internally like getplayer in GS1, which, as we know, can produce quite some lag if used too often. |
findplayer/getplayer are quite fast though :) May be some mod should delete/edit the posts which contain all that bad code x-x
|
Quote:
Would plyr = findplayer("Stefan"); plyr.rupees++; plyr.bombs++; be faster than findplayer("Stefan").rupees++; findplayer("Stefan").bombs++; The first looks nicer anyway :) |
Quote:
I wonder how many times i've done t = temp; |
| All times are GMT +2. The time now is 07:07 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.