SA-MP Forums Archive
Little question - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Little question (/showthread.php?tid=314086)



Little question - oliver12 - 28.01.2012

Hey!
Does escpass[MAX_PLAYERS][100] can work? I'm getting 1 error
Код:
J:\Oliver\Sa-mp\Minu GM\gamemodes\mystic.pwn(1176) : error 047: array sizes do not match, or destination array is too small



Re: Little question - Konstantinos - 28.01.2012

Show us the code you used it. Also what exactly the 100 does because either array sizes do not match each other or it's too small for it. try it 128.


Re: Little question - oliver12 - 28.01.2012

PHP код:
if(dialogid == DIALOOG_REGISTREERI)
    {
        if(
response)
        {
            if(!
strlen(inputtext) || strlen(inputtext) > 100)
            {
                
SendMessage(playerid"~r~Viga: ~w~Sa pead sisestama parooli 1-100 tдhemдrgi vahemikus!");
                
ShowPlayerDialog(playeridDIALOOG_REGISTREERIDIALOG_STYLE_INPUT""Sinine"Palun registreeri",""Valge"Teretulemast mдngima "Punane""SERVER_NIMI"'sse"Valge"!\n"Valge"Mдngimiseks pead sa ennast registreerima!\n\n"Valge"Palun sisesta soovitud parool:""Registreeri""Katkesta");
            }
            else if(
strlen(inputtext) > && strlen(inputtext) < 100)
            {
                
//new escpass[100];
                //mysql_real_escape_string(inputtext, escpass);
                
escpass[playerid] = inputtext;
                
ShowPlayerDialog(playeridDIALOOG_SUGUDIALOG_STYLE_MSGBOX"Soo valik","Mis soost sa oled?","Mees","Naine"); 
It's in estonian, but I think, you understand the code


Re: Little question - Konstantinos - 28.01.2012

Continue with that already have
pawn Код:
new escpass[ 100 ];
It doesn't need to make it Global Variable [ MAX_PLAYERS ]


Re: Little question - oliver12 - 28.01.2012

I don't need help anymore. It's not going to work that way noway