Problems with Tutorial
#10

Quote:
Originally Posted by kloning1
Посмотреть сообщение
PHP код:
enum pinfo
{
    
pTuto,
    
InTuto
};
new 
PlayerInfo[MAX_PLAYERS][pinfo];
case 
DIALOG_LOGIN:
{
    if ( !
response ) return Kick playerid );
    if( 
response )
    {
        new 
psswrdhashed[129];
        
whp_hash(psswrdhashedsizeof(psswrdhashed), inputtext);
        
strdel(psswrdhashed127128);
        if(
strcmp(psswrdhashedPlayerInfo[playerid][pPass]) == 0)
        {
            
PlayerLogged[playerid] = true;
            
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra true, .extra playerid);
            
GivePlayerMoney(playeridPlayerInfo[playerid][pArgent]);
            if(
PlayerInfo[playerid][pTuto] == 0)
            {
                
TimerTuto[playerid] = SetTimerEx("Tuto"5000"d"playerid);
                
PlayerInfo[playerid][InTuto] = 1;
            }
            if(
PlayerInfo[playerid][pInscri] == 1)
            {
                
TimerCreation[playerid] = SetTimerEx("Creation"5000"d"playerid);
            }
            
SetSpawnInfo(playerid00PlayerInfo[playerid][lastx], PlayerInfo[playerid][lasty], PlayerInfo[playerid][lastz], 0000000);
            
SpawnPlayer(playerid);
            return 
1;
        }
        else
        {
            
format(titlestringsizeof(titlestring), "{3091DB}Erreur d'authentification!");
            
SafeDialogEx(playeridDIALOG_LOGINDIALOG_STYLE_PASSWORDtitlestring"\n{DD2D2D}[Erreur] {EE3A3A}Mot de passe incorrect, rйessayez.\n\n{B7B7B7}• Version Gamemode: {FFFFFF}RLRP v"SERVER_GM_TEXT".\n{B7B7B7}• Derniиre mise а jour: {FFFFFF}08/05/2017 - 19:57 (GMT+2).\n{B7B7B7}• Modifications effectuйes:{FFFFFF}\n    "MOTD_LOGIN"""Connexion","Quitter");
        }
    }
}
public 
OnPlayerDisconnect(playerid)
{
    if(
PlayerInfo[playerid][InTuto] == 1)
    {
        
PlayerInfo[playerid][InTuto] = 0;
        
PlayerInfo[playerid][pTuto] = 0;
    }
    return 
1;

Dosen't work
Reply


Messages In This Thread
Problems with Tutorial - by ErwinK - 11.05.2017, 16:07
Re: Problems with Tutorial - by kloning1 - 11.05.2017, 16:14
Re: Problems with Tutorial - by elhanan - 11.05.2017, 16:17
Re: Problems with Tutorial - by ErwinK - 11.05.2017, 16:37
Re: Problems with Tutorial - by GoldenLion - 11.05.2017, 17:31
Re: Problems with Tutorial - by ErwinK - 11.05.2017, 18:03
Re: Problems with Tutorial - by GoldenLion - 11.05.2017, 18:06
Re: Problems with Tutorial - by ErwinK - 11.05.2017, 19:26
Re: Problems with Tutorial - by kloning1 - 11.05.2017, 23:52
Re: Problems with Tutorial - by ErwinK - 20.05.2017, 23:51

Forum Jump:


Users browsing this thread: 2 Guest(s)