next_token = -1;
index = start_index;
+ selection = world;
if(argc > start_index)
{
tmp_number = stof(argv(index));
++index;
}
+ else
+ tmp_number = 0;
}
else // maybe it's ONLY a number?
{
}
else
{
+ selection = world;
FOR_EACH_CLIENT(tmp_player)
if (strdecolorize(tmp_player.netname) == strdecolorize(input))
selection = tmp_player;
entity selection = GetFilteredEntity(input);
float output;
- if(selection) { output = num_for_edict(selection); }
+ output = num_for_edict(selection);
return output;
}
float i;
for(i = 0; i < 10; ++i)
- if(records_reply[i])
+ if(records_reply[i] != "")
print_to(caller, records_reply[i]);
return; // never fall through to usage
print_to(caller, sprintf(strreplace(" ", separator, " %-4s %-20s %-5s %-3s %-9s %-16s %s "),
"ent", "nickname", "ping", "pl", "time", "ip", "crypto_id"));
+ total_listed_players = 0;
FOR_EACH_CLIENT(tmp_player)
{
is_bot = (clienttype(tmp_player) == CLIENTTYPE_BOT);
#undef COMMON_COMMAND
return;
-}
\ No newline at end of file
+}