[Pomoc] Reg/Log sistem 4 Errora

Započeo KiLLa, Januar 15, 2012, 11:25:34 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta: moja
Problem: Naso sam ovaj jedan register i login sistem , sve napravim i dobijem 4 errora, sve na jednoj liniji...

\filterscripts\REGLOG.pwn(83) : error 001: expected token: "-string end-", but found "-identifier-"
\filterscripts\REGLOG.pwn(83) : warning 215: expression has no effect
\filterscripts\REGLOG.pwn(83) : error 001: expected token: ";", but found "-string-"
\filterscripts\REGLOG.pwn(83) : warning 215: expression has no effect
\filterscripts\REGLOG.pwn(83) : error 001: expected token: "-string end-", but found "-identifier-"
\filterscripts\REGLOG.pwn(83) : fatal error 107: too many error messages on one line


4 Errors.


Linija 83:

if(!strlen(inputtext)) return ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT, ""COLOR_WHITE"Registering...",""COLOR_RED"You have entered an invalid password.\nType your password below to register a new account.","Register","Quit");

Mr.Gagi

A kako ti je COLOR_RED i COLOR_WHITE definisano?

#define COLOR_WHITE   0x000000FF
#define COLOR_RED     0xFF0000FF

????

Mr.Gagi

Treba ovako da bude definisano:
#define COL_RED   "{BF0F56}"
#define COL_WHITE     "{FFFFFF}"

I onda za tako da obojis tekst koristis "COL_RED" i "COL_WHITE"
Ako imas definisano COL_RED i COL_WHITE promeni u drugo nesto npr. BOJA_CRVENA...

Hvala  :D
Poslednja Izmena: Januar 15, 2012, 11:40:55 PRE PODNE od KiLLa

Sad imam drugi problem.. Uso sam i nije me uopce pitalo da se registriram, ali mi je spremio cash,score,kills,deaths..

if(PlayerInfo[playerid][pReg] == 0)
      {
         PlayerInfo[playerid][pLevel] = 1;
         PlayerInfo[playerid][pSHealth] = 0.0;
         PlayerInfo[playerid][pHealth] = 50.0;
         PlayerInfo[playerid][pPos_x] = 1612.3240;
         PlayerInfo[playerid][pPos_y] = -2330.1670;
         PlayerInfo[playerid][pPos_z] = 13.5469;
         PlayerInfo[playerid][pInt] = 0;
         PlayerInfo[playerid][pLocal] = 255;
         PlayerInfo[playerid][pTeam] = 3;
         PlayerInfo[playerid][pModel] = 135;
         new randphone = 100000 + random(899999);//minimum 1000  max 9999 //giving one at the start
         PlayerInfo[playerid][pPnumber] = randphone;
         PlayerInfo[playerid][pPhousekey] = 255;
         PlayerInfo[playerid][pPcarkey] = 999;
         PlayerInfo[playerid][pPcarkey2] = 999;
         PlayerInfo[playerid][pPcarkey3] = 999;
         PlayerInfo[playerid][pPbiskey] = 255;
         PlayerInfo[playerid][pAccount] = 0;
         PlayerInfo[playerid][pReg] = 1;
         SafeGivePlayerMoney(playerid, 500);
      }


Proveri ovo pri registraciji mozda ti je nesto izmesano

Stavljaj u kodove [GiB]BlaeKs|GrBsS| !
Aequam memento rebus in arduis servare mentem.

Blaeks opet pišeš gluposti , vidiš da je njegov mod od 0 , on je tražio SPREMANJE a ne samo postavljanje varijabli.

KiLLa jesi ubacio reg/log u skriptu ?
"I'm a loser and a user so I don't need no accuser" - Billie Joe Armstrong

Da, dok je bila FS nije nista radilo, sad kad sam stavio u skriptu radi sve, rjesio sam i to za register..
Ali sada OPET kada se ides logirati sa PRAVILNOM lozinkom govori da nevalja.... Evo dio taj ak ce sta pomoc ili ak nesto drugo treba recite...
case DIALOG_LOGIN:
        {
            if ( !response ) return Kick ( playerid );
            if( response )
            {
                if(udb_hash(inputtext) == PlayerInfo[playerid][pPass])
                {
                    INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
                    GivePlayerMoney(playerid, PlayerInfo[playerid][pCash]);
                    ShowPlayerDialog(playerid, DIALOG_SUCCESS_2, DIALOG_STYLE_MSGBOX,""COL_WHITE"Login Menu","You have been logged in to your account","Ok","");
                }
                else
                {
                    ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,"Login Menu","Wrong Pass dude\nType your password below to login into your account","Login","Quit");
                }
                return 1;
Poslednja Izmena: Januar 15, 2012, 15:50:44 POSLE PODNE od KiLLa

Ok je sada, zanemarite ovo gore sve mislim da sam sad napravio samo sto imam 2 errora
\gamemodes\lvdm1.pwn(705) : error 021: symbol already defined: "strtok"
\gamemodes\lvdm1.pwn(720) : error 047: array sizes do not match, or destination array is too small[code]

INI_ParseFile stavi pod OnPlayerConnect , to ti je učitavanje podataka , kako namjeravaš učitat pass poslije logina?

A ovi errori , već si definirao strtok
"I'm a loser and a user so I don't need no accuser" - Billie Joe Armstrong