29.08.2009, 21:02
After a few hours ,i "instaled" the myqsol on an normal gf , but i have the next problem : When i attemp to /login into the account , the server crashes
The /register works fine , but the login doesn't .
Please help , i need this as soon as possibile
Or if you have an tutorial how to instal myqsol db on normal script i will apriciate.
pawn Код:
if (strcmp(cmd, "/login", true) ==0 )
{
if(IsPlayerConnected(playerid))
{
new tmppass[64];
if(gPlayerLogged[playerid] == 1)
{
SendClientMessage(playerid, TEAM_AZTECAS_COLOR, "SERVER: You are already logged in.");
return 1;
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, TEAM_AZTECAS_COLOR, "USAGE: /login [password]");
return 1;
}
strmid(tmppass, tmp, 0, strlen(cmdtext), 255);
//Encrypt(tmppass);
OnPlayerLogin(playerid,tmppass);
}
return 1;
}
Код:
public public OnPlayerLogin(playerid,password[]) http://pastebin.com/m73f1623
Please help , i need this as soon as possibile
Or if you have an tutorial how to instal myqsol db on normal script i will apriciate.