Pulled out of the nick in the text [] (square brackets)
#1

Pulled out of the nick in the text [] (square brackets)
For example the player is nick [Test]Player and as I pull the Test
Reply
#2

pawn Код:
new
    start,
    end,
    tag[24];

if((start = strfind(name, "[")) != -1 && (end = strfind(name, "]")) != -1)
{
    strmid(tag, name, start, end);
}
Reply
#3

Thanx
Reply
#4

Quote:
Originally Posted by Vince
Посмотреть сообщение
pawn Код:
new
    start,
    end,
    tag[24];

if((start = strfind(name, "[")) != -1 && (end = strfind(name, "]")) != -1)
{
    strmid(tag, name, start, end);
}
And if they have multiple brackets?
Reply
#5

Quote:
Originally Posted by Norn
Посмотреть сообщение
And if they have multiple brackets?
[[test]]admin

[test
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)