Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Ampersand

Pages: 1 2 3 [4] 5 6
46
Off Topic / Re: For all you music lovers...
« on: July 24, 2014, 01:35:42 PM »
I like it. My friend makes music too. He mostly posts tiny clips of songs he makes. This is my favorite of his. But you guys should check some of his stuff out. https://soundcloud.com/tyler-crook
I actually shouldn't say he makes all of that music. He remixes it. But some of it he does make.

47
Still doesn't seem to work.

48
Sorry for all the questions and now it's not even on topic, but I really find it pointless to make a new topic. Anyways, I'm making something that I can announce stuff while on another server using TCPObjects, but they don't seem to be working.

Code: [Select]
new TCPobject(AServerTCP);

function AServerTCP::onConnectRequest(%this, %ip, %socket)
{
%this.connection[%ip] = new TCPobject("",%socket) {
class = AClientTCP;
parent = %this;
};
}

function AServerTCP::onLine(%this, %line)
{
announce(%line);
}
AServerTCP.listen(3000);

function AClientTCP::onLine(%this, %line)
{
echo(%line);
}

function AClientTCP::onConnected(%this)
{
$LRA::Connected = 1;
}

function AClientTCP::onDisconnect(%this)
{
      %this.delete();
}

$LRA::Connected = 0;
function LongRangeAnnounce(%ip, %port, %msg) {
if(!$LRA::Connected) {
$LRA::TCP = new TCPobject(AClientTCP);
$LRA::TCP.connect(%ip @ ":" @ %port);
}
$LRA::TCP.send(%msg);
}
Obviously it's not secured yet, but I'm trying to get the basics working first. It connects successfully, but when I send stuff from the client, onLine is not receiving anything.

49
Off Topic / Re: SWFs
« on: July 24, 2014, 11:36:25 AM »

50
Modification Help / Re: CityRPG Coding help
« on: July 24, 2014, 12:21:01 AM »
Code: [Select]
if(%client.brickGroup.totaldrugs > 0) {
%client.CityRPGXPrint = %client.CityRPGXPrint SPC "\c6Drugs: \c3" @ %client.brickGroup.totaldrugs;
%client.CityRPGXPrint = %client.CityRPGXPrint SPC "\c6Drugs:" SPC %client.valuedrugamount();
}
You forgot braces. If you have more than 1 line of code under an if/for/while than you need braces.

51
One more question. Is there a max character limit to arguments in a function?

52
Off Topic / Re: Control how the above user dies v2.0 PLOT TWIST
« on: July 23, 2014, 03:03:43 PM »
Spitting war with alpacas

53
You're actually in luck. The forward slash is only needed when you're defining a string, i.e. it's used between an opening and closing ". Since Torque doesn't evaluate strings as code, you only need to use the forward slash to get the strings in there, once they're in there they're stored without the slash.

Basically, you don't need to do anything. You can send the string with " in it without a problem.
Thank you for clarification, I found that I wasn't actually doing something correctly.

54
I'm currently trying to convert a string with quotation marks into a proper for to be able to send to the server through a command. It's using a GUI but I can't seem to properly replace quotation marks to be able to be sent.

So let's say I have a string that is stored like this
Code: [Select]
%str = "Hello \"Bob\"";
and if you echoed %str it would display as
Hello "Bob"

I am trying to make it so if you type something into a GUI text box like this  Hello "Bob"  it'll properly put \'s into the string before them.

It's used for something like this
Code: [Select]
In the GUI lets say you type [i]you "suck" bob[/i] it would give me a syntax error because it thinks the quotation marks are for the command to server.
commandtoserver('tell', "Bob \"" @ GUIText.getValue() @ "\"");
I know something like this can be done another way with something with more parameters, but in the case of what I'm trying to achieve, I need to figure out how to do this.

I tried using strreplace(%str, "\"", "\\\""); but that didn't seem to give me proper results and still came back with syntax errors.

Hopefully that is understandable. If not, I will find another way to do this. Thanks for any help I receive.

55
Drama / Re: Hammereditor - "boo hoo the community is so stupid :((("
« on: July 19, 2014, 03:06:13 PM »
Ephialtes got de-admined for a reason.
iirc the reason was, was because he left.

56
Drama / Re: setro's back as zharthon
« on: July 19, 2014, 03:55:15 AM »
the point i was trying to get across here is that you are either Setro (based on your insistence on defending him and how setro himself said it was you), or that you are an idiot for trying to defend someone who was completely in the wrong
Because... He is setro. And he can try to reverse psychology
I literally cannot do anything to make you people believe me, can I.
His tricks are getting good

57
Drama / Re: setro's back as zharthon
« on: July 19, 2014, 03:43:24 AM »
*Insert secondary facepalm*

I literally cannot do anything to make you people believe me, can I.

That is totally fine with me, I would like somebody who has a Steam account to add this very specific Account that I listed and chat.

I would also love to point out that this Steam account I linked is mine, so please do go ahead and add it as a friend.
Right. You just came to the forums knowing everything. Seems legit

58
Off Topic / Re: Blind kid plays football
« on: July 19, 2014, 03:41:29 AM »
the internet is horrible
But they are sharing that it's possible to have a blind boy play football. It's so amazing how great the people of the world are.

60
Off Topic / Re: Would you meet the person above you in real life?
« on: July 19, 2014, 02:27:52 AM »
nope
yup

Pages: 1 2 3 [4] 5 6