Author Topic: How can i show this? + Random Question  (Read 11060 times)

0 Members and 1 Guest are viewing this topic.

Offline Mex

  • Wiseguy
  • **
  • Posts: 63
    • View Profile
Re: How can i show this? + Random Question
« Reply #15 on: February 10, 2009, 07:38:02 pm »
There's a problem with thijn's Alias.

Remove the last } ;)

Offline Zack

  • Street Thug
  • *
  • Posts: 17
  • My english is not good, my main language is Dutch.
    • View Profile
Re: How can i show this? + Random Question
« Reply #16 on: February 10, 2009, 09:17:44 pm »
Thank you, the alias is working now, but the script is still saying the same: Unknown.

Is it maybe becouse i am the only one in the server?
I have my own Hamachi server.
I am not allowed to portforward.

Offline Mex

  • Wiseguy
  • **
  • Posts: 63
    • View Profile
Re: How can i show this? + Random Question
« Reply #17 on: February 11, 2009, 04:32:12 pm »
Is it maybe becouse i am the only one in the server?

That probably isn't the problem.


The reason it is always saying "Unknown" as the name is because in this line:
Code: [Select]
.timer 1 20 vcmp.cmdsay $2 %id The choosen player is: $vcmp.name($vcmp.randomid)
The $vcmp.randomid alias is not returning the correct value.

It may not be returning the correct value because it might not be finding the alias.
Make sure that you have a script loaded with the alias inside it.

Also try pressing 'Control' and 'h' in the mirc scripts editor, which will properly align all the code in that script with indentation, and inform you of any { and } bracket errors.

If it says you have bracket errors, then try placing the code in another blank script for the alias to work, or fix the bracket errors :p


Also it could be a bug in the vcmp.randomid alias i guess, but i cant see anything wrong with it :s

Offline Zack

  • Street Thug
  • *
  • Posts: 17
  • My english is not good, my main language is Dutch.
    • View Profile
Re: How can i show this? + Random Question
« Reply #18 on: February 11, 2009, 04:42:05 pm »
Woot! Thank you very much all. The server says now:
The choosen player is: Zack  ;D.

The only problem is that i am the only one in the server, so i am not 100% sure the server is choosing a random id.
I have my own Hamachi server.
I am not allowed to portforward.