
08-20-2009, 09:21 PM
|
|
Registered User
|
 |
Join Date: Oct 2008
Posts: 1,133
|
|
Quote:
Originally Posted by Switch
Here is the correct code (I use my own styling, you don't necessarily have to follow it):
PHP Code:
//CLIENTSIDE function onCreated() { temp.staffList = { "Manager","Staff","Etc" }; if (player.guild in temp.staffList) showImg(200,"stafficon.png", player.x-0.04, player.y-3.3); }
I used a temp array instead of a this array since it is only called once.
Anyways, you should make a Gani script with an attr[] for this.
|
To clarify, since it's not used outside the function, not because it's called once... |
|
|
|