Compare Name with part of an enum
#1

pawn Code:
for(new i; i<MAX_BUSINESS; i++)
    {
        GetPlayerName(playerid,Name,sizeof(Name));
        printf(BizInfo[i][Owner]);
        if(!strcmp(BizInfo[i][Owner],Name,true))
        {
            ShowPlayerDialog(playerid,DIALOG_BIZ,DIALOG_STYLE_LIST,"Verslo valdymas","Pakeisti biznio pavadinima\nPakeisti įėjimo kainą","Pasirinkti","Atsaukti");
        }
        else SendClientMessage(playerid,0xFF0000FF,"Tu neturi jokio verslo");
    }
Here is my script. The problem is, there's no BizInfo with my name,but i still see the dialog. Any help?
Reply


Messages In This Thread
Compare Name with part of an enum - by dusk - 31.03.2013, 13:05
Re: Compare Name with part of an enum - by Neil. - 31.03.2013, 13:12
Re: Compare Name with part of an enum - by Riddick94 - 31.03.2013, 13:24
Re: Compare Name with part of an enum - by Neil. - 31.03.2013, 13:29
Re: Compare Name with part of an enum - by dusk - 31.03.2013, 14:06
Re: Compare Name with part of an enum - by SuperViper - 31.03.2013, 14:41
Re: Compare Name with part of an enum - by dusk - 31.03.2013, 14:48

Forum Jump:


Users browsing this thread: 1 Guest(s)