Post: Whats wrong with this code?
10-01-2014, 10:19 PM #1
Boliberrys
^^ Sexy ^^
(adsbygoogle = window.adsbygoogle || []).push({}); Hello guys, im trying to find the error to this code but i cant find it. Can someone tell me whats the problem with it?

Location()
{
if(self AdsButtonPressed() && self meleebuttonpressed())
{
self iPrintln( "Your Location is:" + self.origin );
}
}

What i try to do is when the player press L1+R3(Default Buttons), it appears in iPrintIn, the coordinates of the player.

I threaded Location(), so thats not the problem xD

Please help me fix it Happy
10-01-2014, 10:26 PM #2
SyGnUs
Give a F*** About Your Lifestyle
Originally posted by Boliberrys View Post
Hello guys, im trying to find the error to this code but i cant find it. Can someone tell me whats the problem with it?

Location()
{
if(self AdsButtonPressed() && self meleebuttonpressed())
{
self iPrintln( "Your Location is:" + self.origin );
}
}

What i try to do is when the player press L1+R3(Default Buttons), it appears in iPrintIn, the coordinates of the player.

I threaded Location(), so thats not the problem xD

Please help me fix it Happy


You can use something like this -
    
coord()
{
self endon("death");
self endon("disconnect");
for(;Winky Winky
{
self iPrintLnBold(self getOrigin());
}
}


Thread it at playerspawned.
10-01-2014, 10:31 PM #3
Boliberrys
^^ Sexy ^^
Originally posted by SyGnUs View Post
You can use something like this -
    
coord()
{
self endon("death");
self endon("disconnect");
for(;Winky Winky
{
self iPrintLnBold(self getOrigin());
}
}


Thread it at playerspawned.

Thanks! Ill try it as soon as i can..
Can you give me your skype so i can ask any questions please?
10-01-2014, 10:42 PM #4
SyGnUs
Give a F*** About Your Lifestyle
Originally posted by Boliberrys View Post
Thanks! Ill try it as soon as i can..
Can you give me your skype so i can ask any questions please?


Don't get me wrong I like to help, but you should really look for tutorials on learning the basics of GSC, it will help as this is pretty simple stuff what you are trying to do. Just give me your skype though and I will try and help when I can.
10-01-2014, 10:53 PM #5
Boliberrys
^^ Sexy ^^
Originally posted by SyGnUs View Post
Don't get me wrong I like to help, but you should really look for tutorials on learning the basics of GSC, it will help as this is pretty simple stuff what you are trying to do. Just give me your skype though and I will try and help when I can.


Martokiper

Im looking lots of tutorials xD But well... english is not my main language, so if i dont understand something, i ask it here xD

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo