SA-MP Forums Archive
Server Crash! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: Server Crash! (/showthread.php?tid=561340)



Server Crash! - Barnwell - 02.02.2015

Pleeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeaseeeee!!!!!!!! !!!!!!!!!!!!!!

What to do with this plesae i want to play!!!!!!!!!!!!!!!!!!

i upload all SQL Tables its work on windows but in linux not why?

Stock Here:

pawn Код:
stock OnPlayerLogin(playerid, password[])
{
    new
        sqlQuery[300],
        password2 = num_hash(password)
    ;
    format(sqlQuery, sizeof(sqlQuery), "SELECT * FROM samp_users WHERE `Username`='%s' AND `Password`='%d'", GPN(playerid), password2);
    mysql_query(sqlQuery, THREAD_LOGIN, playerid);
    return 1;
}
Dialog Here


pawn Код:
if(dialogid == 1245)
    {
        if(response)
        {
            strmid(Typed[playerid], inputtext, 0, strlen(inputtext), 255);
            if(!strcmp(Typed[playerid], "None", true))
            {
                ShowPlayerDialog(playerid, 1245, DIALOG_STYLE_PASSWORD,"Try Again, Please Log-In","You didn't type a password!\nType your password below to log-in","Log-in","Quit");
            }
            else
            {
                OnPlayerLogin(playerid, inputtext);
            }
        }
        else
        {
            Kick(playerid);
        }
    }



Re: Server Crash! - Ironboy - 02.02.2015

Did you ever tried with linux plugins?


Re: Server Crash! - Barnwell - 02.02.2015

yeah i try i use LARP with MySQL what the problem when i register and all thing tell me Login when i login server restarting