GetPlayerIdFromName problem
#3

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
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:
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)
    {
        // ...
    }
}
i understand this but i need to bring that veriable to another script, it is not dialog at all, its TextDrawSelect
Reply


Messages In This Thread
GetPlayerIdFromName problem - by ancezas - 04.03.2014, 19:00
Re: GetPlayerIdFromName problem - by Konstantinos - 04.03.2014, 19:08
Re: GetPlayerIdFromName problem - by ancezas - 04.03.2014, 19:13

Forum Jump:


Users browsing this thread: 1 Guest(s)