Search a person from a dialog
#10

Quote:
Originally Posted by TheSy
Посмотреть сообщение
pawn Код:
if(dialogid == 0)
    {
        if(!response)
        {
            return 1;
        }
        new tmp[64], idx, giveplayerid, string[100];
        tmp = strtok(inputtext, idx);
        giveplayerid = ReturnUser(tmp);
        format(string, sizeof(string), "Name: %s", GetName(giveplayerid));
        PlayerTextDrawSetString(playerid, Textdraw1[playerid], string);
        PlayerTextDrawShow(playerid, Textdraw1[playerid]);
    }
Why it's not work?
What does the ReturnUser function do?

You can convert a string into an integer with strval; if the dialog only accepts IDs then it would be:

pawn Код:
giveplayerid = strval(inputtext);
Reply


Messages In This Thread
Search a person from a dialog - by TheSy - 29.01.2014, 17:08
Re: Search a person from a dialog - by TheSy - 29.01.2014, 20:43
Re: Search a person from a dialog - by TheSy - 30.01.2014, 15:41
Re: Search a person from a dialog - by GODEX - 30.01.2014, 17:21
Re: Search a person from a dialog - by TheSy - 30.01.2014, 22:00
Re: Search a person from a dialog - by TheSy - 31.01.2014, 14:35
Re: Search a person from a dialog - by TheSy - 01.02.2014, 10:25
Re: Search a person from a dialog - by BroZeus - 01.02.2014, 11:09
Re: Search a person from a dialog - by TheSy - 01.02.2014, 11:14
Re: Search a person from a dialog - by CuervO - 01.02.2014, 11:24

Forum Jump:


Users browsing this thread: 1 Guest(s)