SA-MP Forums Archive
getting the inputtext (2) - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: getting the inputtext (2) (/showthread.php?tid=201411)



getting the inputtext (2) - LZLo - 21.12.2010

PHP код:
if (dialogid == SKINYAKUZA)
    {
     if(
response)
    {
        if(
inputtext == mypass)
        {
            
YAKUZA[playerid] = 1;
            
SendClientMessage(playerid,COLOR_RED,"WELCOME!");
        }
        else
        {
        
SendClientMessage(playerid,COLOR_RED,"ERROR: BAD PASSWORD!");
        
ForceClassSelection(playerid);
        }
    }
    return 
1;
    } 
why i got an error for "mypass"?


Re: getting the inputtext (2) - [WF]Demon - 21.12.2010

pawn Код:
if (dialogid == SKINYAKUZA)
    {
     if(response)
    {
        if(strcmp(inputtext, "mypass", true) == 0)
        {
            YAKUZA[playerid] = 1;
            SendClientMessage(playerid,COLOR_RED,"WELCOME!");
        }
        else
        {
        SendClientMessage(playerid,COLOR_RED,"ERROR: BAD PASSWORD!");
        ForceClassSelection(playerid);
        }
    }
    return 1;
    }
Try That


Re: getting the inputtext (2) - LZLo - 21.12.2010

thank you!