/login does nothing
#1

You can /register <password> fine but then when you do /login <password> nothing happens as if you didnt type anything. And no, I dont have auto-login. Please could anyone help. Server I.P: 188.72.225.172:3000 if you want to have a look, it's weird.
Reply
#2

You need to show us the code.
Reply
#3

Why noone gives code? We cant see code by entering your server! Just get the code from OnPlayerCommandText (Or sumtin like that)
Reply
#4

this is what i got from the OnPlayerCommandText from the script:

//---------------------------<[ OnPlayerCommandText ]>--------------------------------------------------------

public OnPlayerCommandText(playerid, cmdtext[])
{
dcmd(specplayer, 10, cmdtext);
dcmd(specoff, 7, cmdtext);
dcmd(xgoto, 9, cmdtext);
new string[256];
new playermoney;
new sendername[MAX_PLAYER_NAME];
new giveplayer[MAX_PLAYER_NAME];
new playername[MAX_PLAYER_NAME];
new cmd[128];
new tmp[256];
new dancestyle;
new giveplayerid, moneys, idx;
new idcar = GetPlayerVehicleID(playerid);
new pveh = GetVehicleModel(GetPlayerVehicleID(playerid));
cmd = strtok(cmdtext, idx);
GetPlayerName(playerid, sendername, sizeof(sendername));
new y5, m5, d5;
new h5,mi5,s5;
getdate(y5,m5,d5);
gettime(h5,mi5,s5);
format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s [CMD] -> %s",d5,m5,y5,h5,mi5,s5,sendername,cmdtext);
AllCommandLog(string);

Also may i add that this server works absoloutely fine when run in local mode but when hosted on the internet (from serverffs) it has that login bug/
Reply
#5

Show us the login command
Reply
#6

/login <password>

Also something else, even when i do /login and nothing happens, i can still do /help and all that comes up fine. Admin commands work and stuff. And even if i type the wrong password, it doesnt say i typed wrong password like it does in local mode. It is almost like there is no /login script but there is cos it works in local.
Reply
#7

anyone?
Reply
#8

Not the usage of the login command

The code for the login command! The one in your script
Reply
#9

oh lol sorry it's this:

//-------------------------------[Login]--------------------------------------------------------------------------
if (strcmp(cmd, "/login", true) == 0)
{
if(!IsPlayerNPC(playerid))
{
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);
GetPlayerName(playerid,sendername,sizeof(sendernam e));
new playersip[256];
GetPlayerIp(playerid,playersip,sizeof(playersip));
new d,m,y;
new h,mi,s;
getdate(y,m,d);
gettime(h,mi,s);
format(string,sizeof(string),"(%d/%d/%d)[%d:%d:%d] %s Has Logged In [IP: %s]",d,m,y,h,mi,s,sendername, playersip);
LoginLog(string);
}
}
return 1;
}
Reply
#10

BUMP - This bug is affecting alot of people using raven's rp GM, we really need help getting it sorted.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)