17.05.2015, 14:51
They were posted in the codes I provided.
Logging:
Registration:
Logging:
PHP код:
new tmppass[64];
//Store Player ID & TMP pass in echo to find string used to crash server
new playername[MAX_PLAYER_NAME];
strmid(tmppass, inputtext, 0, strlen(inputtext), 255);
GetPlayerName(playerid, playername, sizeof(playername));
//FadeColorForPlayer(playerid,0,0,0,0,0,0,0,255,15,0);
if(strlen(playername) == 3)
{
SendClientMessage(playerid, COLOR_LIGHTRED, "Sorry, that name is too short, please change it.");
SetTimerEx("GettingKicked", 2000, false, "i", playerid);
return 1;
}
Encrypt(tmppass);
OnPlayerLogin(playerid,tmppass);
}
PHP код:
new tmppass[64];
strmid(tmppass, inputtext, 0, strlen(inputtext), 255);
Encrypt(tmppass);
PlayAudioStreamForPlayer(playerid,"hidden");
ClearChatbox(playerid, 100);
//FadeColorForPlayer(playerid,0,0,0,255,0,0,0,0,15,0);
OnPlayerRegister(playerid,tmppass);
OnPlayerLogin(playerid,tmppass);
//SendClientMessage(playerid, COLOR_YELLOW, "Account registered, you have been logged in automatically.");
}