Author Topic: Everyone In Server  (Read 1699 times)

Haha my apologies, forgot about it needing to be a serverCmd.

Why would you say that?

You edited your post after I posted and pretended you didn't, richard move. Before you were comparing %a (loop index) with %client.

I didn't intentionally try to pull a richard move. I didn't exactly understand what you said, but did realize that mistake I made. So I corrected it. My apologies, once again.


!%all is 0
This.

Take out the first ! before %all and change the == to !=

!%all is 0

Related: I was actually a bit uncertain about TorqueScript's token priority earlier.
Apparently, this works just fine:

Code: [Select]
if ( !%len = getWordCount( %opened ) )
// (sets %len to a value, then checks it's opposite boolean variant)

Earlier, I always did this:

Code: [Select]
if ( !( %len = getWordCount( %opened ) ) )

You are comparing a client object ID and a player object ID, you are also using a string comparison for two integers, which isn't really a big deal but using "!=" instead would be faster ;D
both are clients

i didn't even read the code lol

and i've gotten into the habit of using string comparison everywhere for safety even where there would never be anything except numbers