Need help with accessing string arrays
#6

Quote:
Originally Posted by iMr
I know it could be done alot easier, but I can't use strcmp :S
pawn Код:
{
    new pw[128];
    pw = dini_Get(gPlayerfile[playerid], "Password");
    if ( !strcmp(params, pw, true) ) // THIS LINE <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
    {
        gPlayerlogged[playerid] = 1;
        SendClientMessage(playerid, 0x00FF00FF, "Login successful.");
        return 1;
    }
    else
    {
        SendClientMessage(playerid, 0xFF0000FF, "Wrong password.");
        return 0;
    }
}
Reply


Messages In This Thread
Need help with accessing string arrays - by iMr - 02.05.2009, 07:57
Re: Need help with accessing string arrays - by yom - 02.05.2009, 08:07
Re: Need help with accessing string arrays - by iMr - 02.05.2009, 09:19
Re: Need help with accessing string arrays - by HB - 02.05.2009, 09:35
Re: Need help with accessing string arrays - by iMr - 02.05.2009, 11:11
Re: Need help with accessing string arrays - by pen_theGun - 02.05.2009, 13:17

Forum Jump:


Users browsing this thread: 2 Guest(s)