Little question
#1

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
Reply
#2

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.
Reply
#3

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
Reply
#4

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)