Little help pls
#1

I have this login code and I want to add something to check if the player has done his tutorial but don't know how.

pawn Код:
stock Login(playerid,key[])
{
    new file]64];
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid,name,sizeof(name));
    format(file,sizeof(file),"/users/%s.txt",name);
    if(!strcmp(key,dini_Get(file,"password"),true))
    {
        // login player
    else
    {
        //password wrong,repeat it...
    }
}
Something like this

pawn Код:
If(PlayerInfo[playerid][Tut]=0)
{
   //show tutorial here
}
Reply


Messages In This Thread
Little help pls - by MarinacMrcina - 03.06.2012, 21:36
Re: Little help pls - by MarinacMrcina - 04.06.2012, 16:34
Re: Little help pls - by ProdrifterX - 04.06.2012, 19:47
Re: Little help pls - by MarinacMrcina - 04.06.2012, 19:58

Forum Jump:


Users browsing this thread: 1 Guest(s)