Command not working
#1

pawn Код:
CMD:login(playerid,params[])
{
    new string[256];
    new string1[128];
    string = dini_Get(File,"Password:");
    if(sscanf(params,"%s",string1)) SendClientMessage(playerid,0x00FF00FF,"Usage: /login [Password]");
    else
    {
        if(strcmp(string,string1,true))
        {
            SendClientMessage(playerid,0x00FF00FF,"You succesfully logged in");
        }
        if(!strcmp(string,string1,true))
        {
            SendClientMessage(playerid,0x00FF00FF,"Invalid password");
        }
    }
    return 1;
}
This is my script,and no matter what i type it says "Invalid Password"
Reply


Messages In This Thread
Command not working - by dusk - 01.02.2013, 15:45
Re: Command not working - by dusk - 01.02.2013, 16:07
Re: Command not working - by dusk - 01.02.2013, 16:20

Forum Jump:


Users browsing this thread: 1 Guest(s)