My Gui won't show the players in a server but there is a tab in each spot of where the player's name and bl_id should be. Does anyone know how to fix?
Fixed.
New Question: How do I send a command to the selected player in the list?
For Example: This sends the MessageOkBox to me every time instead of the person who is selected in the player list.
(clientsided)
function CityRPG::message(%gui)
{
if($IAmAdmin > 0)
{
%row = CityRPGList.getSelectedID();
if(%row >= 0)
{
%name = getField(CityRPGList.getRowTextById(%row), 0);
commandToServer('Box', %name);
}
}
else
{
MessageBoxOK("Error", "You are not an Admin, so you cannot use this command.");
}
}
(serversided)
function ServerCmdBox(%name)
{
echo("Sending WelcomeBox...");
%name = %name;
commandToClient(%name, 'messageBoxOK', "Welcome Message", "Please follow the server rules. To view them type: /help view rules.");
}