Strcmp
#3

Quote:
Originally Posted by SickAttack
View Post
I'm pretty sure that "DB[playerid][Password]" is empty; therefore, strcmp returns a "match" - read the wiki.
actually it isn't take a look please:

PHP Code:
public OnPlayerConnect(playerid)
{
    
INI_ParseFile(pFile(playerid),"LoadUser_%s",.bExtra true, .extra playerid);
    
SetPlayerPos(playerid1742.9839,-1862.0048,13.5768);
    
SetPlayerFacingAngle(playerid,0);
    
SetPlayerCameraPos(playerid1742.8409,-1843.0232,18.6594);
    
SetPlayerCameraLookAt(playerid1742.9839,-1862.0048,13.5768);
    
GameTextForPlayer(playerid"Loading Database"20006);
    
SetTimerEx("LoginDelay"1500false"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;} 
Reply


Messages In This Thread
Strcmp - by Lirbo - 22.07.2015, 00:16
Re: Strcmp - by SickAttack - 22.07.2015, 00:50
Re: Strcmp - by Lirbo - 22.07.2015, 01:38
Re: Strcmp - by SickAttack - 22.07.2015, 01:44
Re: Strcmp - by Lirbo - 22.07.2015, 02:18
Re: Strcmp - by SickAttack - 22.07.2015, 02:30
Re: Strcmp - by Lirbo - 22.07.2015, 02:50
Re: Strcmp - by SickAttack - 22.07.2015, 03:02

Forum Jump:


Users browsing this thread: 3 Guest(s)