getting the inputtext (2)
#1

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"?
Reply
#2

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
Reply
#3

thank you!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)