LOL ?! o_O
Code:
#include <amxmodx>
#define PLUGIN "Test Strings"
#define VERSION "1.0"
#define AUTHOR "Alka"
#define STR_MAX_NUM 30
#define STR_MAX_SIZE 32
new String[STR_MAX_NUM][STR_MAX_SIZE];
new Ips[128];
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR);
register_cvar("ipslist", "12.22.222.23:27015;13.22.222.23:27015;14.22.222.23:27015;");
get_cvar_string("ipslist", Ips, sizeof Ips - 1);
new Num;
do {
Num++;
strtok(Ips, String[Num], sizeof String - 1, Ips, sizeof Ips - 1, ';');
} while(containi(Ips, ";") != -1);
for(new i = 0 ; i < sizeof String ; i++)
{
if(!String[i][0])
continue;
new Ip[32], Port[10];
strtok(String[i], Ip, sizeof Ip - 1, Port, sizeof Port - 1, ':');
server_print("Debug: Ip: %s | Port: %s", Ip, Port);
}
}
__________________