22.07.2015, 01:38
Quote:
I'm pretty sure that "DB[playerid][Password]" is empty; therefore, strcmp returns a "match" - read the wiki.
|
PHP Code:
public OnPlayerConnect(playerid)
{
INI_ParseFile(pFile(playerid),"LoadUser_%s",.bExtra = true, .extra = playerid);
SetPlayerPos(playerid, 1742.9839,-1862.0048,13.5768);
SetPlayerFacingAngle(playerid,0);
SetPlayerCameraPos(playerid, 1742.8409,-1843.0232,18.6594);
SetPlayerCameraLookAt(playerid, 1742.9839,-1862.0048,13.5768);
GameTextForPlayer(playerid, "Loading Database", 2000, 6);
SetTimerEx("LoginDelay", 1500, false, "i", playerid);
return 1;
}
PHP Code:
forward LoadUser_data(playerid,name[],value[]);
public LoadUser_data(playerid,name[],value[])
{
INI_String("Password",DB[playerid][Password],129);
return 1;}