if inputtext = players varible
#10

Parameter order in ShowPlayerDialog is not right. dialogid comes before style

pawn Код:
command(show,playerid,params[])
{
    ShowPlayerDialog(playerid,1,DIALOG_STYLE_INPUT,"Enter a description","enter the players description to get the name","ok","cancel");
    return 1;
}
and this should work

pawn Код:
case 1:
{
    for(new i=0;i<MAX_PLAYERS;i++) //loop for all players
    {
        if(!strcmp(Player[i][description],inputtext,true) || !strcmp(Player[i][description2],inputtext,true))
        {
            SendClientMessage(playerid,WHITE,GetName(i));
            return 1;
        }
    }
    SendClientMessage(playerid,WHITE,"nothing was found");
}
Reply


Messages In This Thread
if inputtext = players varible - by Slappybay - 01.07.2012, 18:16
Re: if inputtext = players varible - by Hawky133 - 01.07.2012, 18:20
Re: if inputtext = players varible - by Slappybay - 01.07.2012, 20:46
Re: if inputtext = players varible - by SuperViper - 01.07.2012, 22:18
Re: if inputtext = players varible - by qinaixiuor - 02.07.2012, 00:25
Re: if inputtext = players varible - by Tee - 02.07.2012, 02:12
Re: if inputtext = players varible - by Slappybay - 02.07.2012, 03:46
Re: if inputtext = players varible - by Slappybay - 04.07.2012, 04:40
Re: if inputtext = players varible - by Tee - 04.07.2012, 05:39
Re: if inputtext = players varible - by MadeMan - 04.07.2012, 10:03

Forum Jump:


Users browsing this thread: 1 Guest(s)