dialogs login..
#1

pawn Код:
if(dialogid == 1) //Logging
    {
        if(!response)
        {
        SendClientMessage(playerid,COLOR_RED,"You Have To Login In Order To Play!");
        ShowPlayerDialog(playerid,1,DIALOG_STYLE_INPUT,"Login","Please Type Your Password Below To Login","Login","Cancel");
        }
        if(response)
        {
        new ppw[24];
        ppw = dini_Get(pfile, "Password"));
        if(ppw(inputtext) != dini_Int(pfile, "Password"))
        {
        SendClientMessage(playerid,COLOR_RED,"Wrong Password");
        ShowPlayerDialog(playerid,1,DIALOG_STYLE_INPUT,"Login","Please Type Your Password Below To Login","Login","Cancel");
        }
        else
        {
        LoadPlayer(playerid);
        IsLogged[playerid] = 1;
        SetTimerEx("TimePlayerLogged", 1000, true, "i", playerid);
        }
        }
        return 1;
    }

pawn Код:
C:\DOCUME~1\Karim\MYDOCU~1\GRANDT~1\SA-MPS~1\GAMEMO~1\COPSAR~1.pwn(3167) : error 047: array sizes do not match, or destination array is too small
C:\DOCUME~1\Karim\MYDOCU~1\GRANDT~1\SA-MPS~1\GAMEMO~1\COPSAR~1.pwn(3167) : error 029: invalid expression, assumed zero
C:\DOCUME~1\Karim\MYDOCU~1\GRANDT~1\SA-MPS~1\GAMEMO~1\COPSAR~1.pwn(3167) : warning 215: expression has no effect
C:\DOCUME~1\Karim\MYDOCU~1\GRANDT~1\SA-MPS~1\GAMEMO~1\COPSAR~1.pwn(3168) : error 012: invalid function call, not a valid address
C:\DOCUME~1\Karim\MYDOCU~1\GRANDT~1\SA-MPS~1\GAMEMO~1\COPSAR~1.pwn(3168) : warning 215: expression has no effect
C:\DOCUME~1\Karim\MYDOCU~1\GRANDT~1\SA-MPS~1\GAMEMO~1\COPSAR~1.pwn(3168) : error 001: expected token: ";", but found ")"
C:\DOCUME~1\Karim\MYDOCU~1\GRANDT~1\SA-MPS~1\GAMEMO~1\COPSAR~1.pwn(3168) : error 029: invalid expression, assumed zero
C:\DOCUME~1\Karim\MYDOCU~1\GRANDT~1\SA-MPS~1\GAMEMO~1\COPSAR~1.pwn(3168) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


6 Errors.
on here
pawn Код:
new ppw[24];
        ppw = dini_Get(pfile, "Password"));
        if(ppw(inputtext) != dini_Int(pfile, "Password"))
i dont get input dialogs,.. rlly much
Reply
#2

pawn Код:
new ppw[24];
ppw = dini_Get(pfile, "Password");
if(ppw != inputtext)
Reply
#3

lo i dont get this

new ppw[256];
ppw = dini_Get(pfile, "Password");
if(ppw != inputtext)

array must be indexed on ppw = dini_Get(w/e)

i fixed this before but wtf this is different..
Reply
#4

pawn Код:
new ppw[256];
ppw = dini_Get(pfile, "Password");
if(!strcmp(ppw, inputtext, true))
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)