I am having a bug with YINI
#7

Quote:
Originally Posted by nmader
Посмотреть сообщение
I assume you use something similar to
pawn Код:
if(fexsist == 0)
and
pawn Код:
if(fexsist == 0)
?
Them two pieces of codes you posted are the same but no I do not where would I put them?

edit found it

pawn Код:
public OnPlayerConnect(playerid)
{
    gOoc[ playerid ] = 0; Logged[ playerid ] = 0;
    // Reset stats!
    PlayerInfo[ playerid ][ pCash ] = 0;
    PlayerInfo[ playerid ][ pAdmin ] = 0;
    PlayerInfo[ playerid ][ pSex ] = 0;
    PlayerInfo[ playerid ][ pAge ] = 0;
    PlayerInfo[ playerid ][ pPos_x ] = 0.0;
    PlayerInfo[ playerid ][ pPos_y ] = 0.0;
    PlayerInfo[ playerid ][ pPos_z ] = 0.0;
    PlayerInfo[ playerid ][ pSkin ] = 0;
    PlayerInfo[ playerid ][ pTeam ] = 0;
    PlayerInfo[ playerid ][ pAccent ] = 0;
    PlayerInfo[ playerid ][ pTutorial ] =0;
    PlayerInfo[ playerid ][ pJob ] =0;
    PlayerInfo[ playerid ][ pDlvpkg ] =0;
    PlayerInfo[ playerid ][ pKills ] =0;
    PlayerInfo[ playerid ][ pDeaths ] =0;
    PlayerInfo[ playerid ][ pDead ] =0;
    PlayerInfo[ playerid ][ pCop ] =0;
    PlayerInfo[ playerid ][ pLeader ] =0;
    PlayerInfo[ playerid ][ pPolitician ] =0;
    PlayerInfo[ playerid ][ pGunPermit ] =0;
    PlayerInfo[ playerid ][ pBank ] = 0;
    PlayerInfo[ playerid ][ pHours ] =0;
    PlayerInfo[ playerid ][ pLevel ] =0;
    PlayerInfo[ playerid ][ pScrapMetal ] =0;
    PlayerInfo[ playerid ][ pCar ] =0;
    PlayerInfo[ playerid ][ pCarPos_x ] = 0.0;
    PlayerInfo[ playerid ][ pCarPos_y ] = 0.0;
    PlayerInfo[ playerid ][ pCarPos_z ] = 0.0;
    PlayerInfo[ playerid ][ pCarPos_a ] = 0.0;
    PlayerInfo[playerid][pCarID] = -1;
    PlayerInfo[playerid][pRadioFreq] = -1;
    PlayerInfo[playerid][pRadio] = 0;
    pTazer[playerid] = 0;
    pTazed[playerid] = 0;
    pCuffed[playerid] = 0;
    RemoveBuildingForPlayer(playerid, 1885, 310.1250, -166.2109, 998.5547, 0.25);
    RemoveBuildingForPlayer(playerid, 1885, 315.2422, -169.8984, 998.5547, 0.25);
    RemoveBuildingForPlayer(playerid, 18105, 312.9844, -163.2500, 1000.5547, 0.25);
    RemoveBuildingForPlayer(playerid, 1886, 318.8047, -158.9297, 1003.2266, 0.25);


    if(fexist(UserPath(playerid)))
    {
        if(PlayerInfo[playerid][pBanned] > 0)
        {
            SendClientMessage(playerid, COLOR_BAN, " You are banned from this server you can appeal this by visiting changeme ");
            BanEx(playerid, "trying to log into a banned account");
        }
        else
        {
            INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
            ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,"Basic Roleplay","Type your password below to login:","Login","Quit");
        }
    }
    else
    {

            ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,"Basic Roleplay","Type your password below to register a new account:","Register","Quit");
    }

    return 1;
}
Reply


Messages In This Thread
I am having a bug with YINI - by new121 - 15.03.2012, 05:50
Re: I am having a bug with YINI - by nmader - 15.03.2012, 05:55
Re: I am having a bug with YINI - by new121 - 15.03.2012, 05:58
Re: I am having a bug with YINI - by nmader - 15.03.2012, 06:01
Re: I am having a bug with YINI - by new121 - 15.03.2012, 06:05
Re: I am having a bug with YINI - by nmader - 15.03.2012, 06:07
Re: I am having a bug with YINI - by new121 - 15.03.2012, 06:10
Re: I am having a bug with YINI - by nmader - 15.03.2012, 06:16
Re: I am having a bug with YINI - by new121 - 15.03.2012, 06:17
Re: I am having a bug with YINI - by nmader - 15.03.2012, 06:38

Forum Jump:


Users browsing this thread: 4 Guest(s)