ItsMods

Full Version: Error
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
(11-10-2012, 21:27)The Tronuo Wrote: [ -> ]
(11-10-2012, 21:24)JayDi Wrote: [ -> ]
(11-10-2012, 21:20)The Tronuo Wrote: [ -> ]
(11-10-2012, 21:08)JayDi Wrote: [ -> ]SetValue is for default numbers. Like 1, 131, 1312 etc
self.origin is a string ( originaly vector ). Use SetString. Without text.
Or just make some spammer using self iprintLnBold(self.origin);
Also you should add self endon("death"); in your code.
How to use SetString?

self.coords setString(self.origin); ?
I get an error "Unknown function"(((

ohh.. Try setText
All the same.
Try it like this.

Code:
getCoords()
{
self endon("disconnect");

for(;;)
{
origin = self getOrigin();
angels = self getPlayerAngles();
self.coords = self createFontString("default", 1.2);
self.coords setPoint("CENTER", "CENTER", 0, 60);
self.coords setSize( 125, 150);
self.coords setText("<text_here>" + origin + "|" + angels);
wait .05;
}

}

//This is to get your string to work, I'm not too sure since this is for black ops
//you may need to use setValue(<string_label>); or setString(<string_label>); //dunno??

//Thanks to Yamato!!

getCoords()
{
self endon("disconnect");

for(;;)
{
origin = self getOrigin();
angels = self getPlayerAngles();
self.coords = self createFontString("default", 1.2);
self.coords setPoint("CENTER", "CENTER", 0, 60);
self.coords setSize( 125, 150);
self.coords.label = ":";
coordinates = self.coords.label;
self.coords setText("|" + coordinates + "|" + origin + "|" + angels);
wait .05;
}

}
Code:
getCoords(){    
  self.coordsx = self createFontString("default", 1.2);
  self.coordsx.label = ":"
  self.coordsx setPoint("CENTER", "CENTER", 0, 60);
  self.coordsy = self createFontString("default", 1.2);
  self.coordsy setPoint("CENTER", "CENTER", 10, 60);
  self.coordsz = self createFontString("default", 1.2);
  self.coordsz setPoint("CENTER", "CENTER", 20, 60);
   while (1){
    self.coordsx setValue(self.origin[0]);
    self.coordsy setValue(self.origin[1]);
    self.coordsz setValue(self.origin[2]);
    wait 0.05;
}
}
Thank you all.
zxz0O0, Thank you very much.
Pages: 1 2 3