Thread: Icon Script
View Single Post
  #3  
Old 08-20-2009, 09:21 PM
Pelikano Pelikano is offline
Registered User
Pelikano's Avatar
Join Date: Oct 2008
Posts: 1,133
Pelikano has a little shameless behaviour in the past
Quote:
Originally Posted by Switch View Post
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.04player.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...
Reply With Quote