15.02.2013, 19:50
(
Последний раз редактировалось S0n1COwnsYou; 16.02.2013 в 15:58.
Причина: Problem Solved
)
PHP код:
stock PlayerRangeIP(TargetID)
{
new String[256];
new IPCoordinates[4][3];
split(PlayerIP(TargetID), IPCoordinates, '.');
format(String, 256, "banip %s.%s.*.*", IPCoordinates[0], IPCoordinates[1]);
return String;
}
PHP код:
stock split(const strsrc[], strdest[][], delimiter)
{
new i, li;
new aNum;
new len;
while(i <= strlen(strsrc))
{
if(strsrc[i] == delimiter || i == strlen(strsrc))
{
len = strmid(strdest[aNum], strsrc, li, i, 128);
strdest[aNum][len] = 0;
li = i+1;
aNum++;
}
i++;
}
return 1;
}
What i'm doing wrong ??