• Welcome to Vice City Multiplayer.
 

How can i show this? + Random Question

Started by Zack, February 08, 2009, 10:11:25 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Mex


Zack

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.

Mex

Quote from: Zack on February 10, 2009, 07:17:44 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:
.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

Zack

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.