04.03.2014, 19:08
If you want to just copy the name to Vardukas why do you do all the above. By the way doing "Vardukas = name;" is wrong; hence you get "nonsense" numbers.
You can just do:
You can just do:
pawn Код:
new szName[21], pos = strfind(inputtext, "-");
if (pos != -1)
{
strmid(szName, inputtext, 0, pos, 21);
new id = GetPlayerIdFromName(szName);
if (id != INVALID_PLAYER_ID)
{
// ...
}
}