Thread: Wont update
View Single Post
  #1  
Old 02-22-2010, 11:23 AM
Entrok Entrok is offline
Registered User
Join Date: Sep 2009
Location: Sweden
Posts: 51
Entrok is on a distinguished road
Send a message via MSN to Entrok
Wont update

I am working on a gui sys for a server and got a problem, im using client.ammo, its showing the img correctly and all, but it wont update if i have client.ammo = 1, and change to 10, then i need to update the script for it to change..

So thats what i need help with right now, so it will update, some one?
PHP Code:
//#CLIENTSIDE
function onCreated()
{
  for (
i=1; i<client.ammo; i+=1)
  {
    
showimg(200+i, "mercia_newgui.png", screenwidth - 302 -(i*4), screenheight - 75);
    
changeimgpart(200+i, 220, 137, 5, 10);
    
changeimgvis(200+i, 5);
  }
  
setshape(1, 32, 32*client.ammo);
  
setTimer(.5);
} 
Reply With Quote