~URGENT~ Score saving is not working Rep++
#9

How do i add it... since its very big

pawn Код:
public OnPlayerConnect(playerid)
{
    SendClientMessage(playerid,-1,"Welcome to United Kingdom TDM! Dont forget to check /updates ! ");
    new name[MAX_PLAYER_NAME], string[24+MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof(name));
    format(string, sizeof(string), "** %s has joined United Kingdom TDM", name);
    SendClientMessageToAll(-1, string);

    new file[64],PlayerName[25];//Creating a variable where we can store the file path, and the variable to store the player's name.
    GetPlayerName(playerid,PlayerName,sizeof PlayerName);//Storing the players name in the PlayerName variable.
    format(file,sizeof file,"Admin/%s.ini",PlayerName);//Storing the file path with the players name.
    if(!fexist(file))//Checking if the file exists
    {//Here goes the stuff you want to do if the user is not registered.
        SendClientMessage(playerid,-4,"You are not registered! Please use /register <password>");
    }
    else
    {//Here goes the stuff you want to do if the user is registered.
        SendClientMessage(playerid,-4,"You are registered! Use /login <password>");
    }
    return 1;
}
Reply


Messages In This Thread
~URGENT~ Score saving is not working Rep++ - by Biess - 24.09.2012, 17:30
Re: ~URGENT~ Score saving is not working Rep++ - by Jarnu - 24.09.2012, 17:35
Re: ~URGENT~ Score saving is not working Rep++ - by Biess - 24.09.2012, 17:40
Re: ~URGENT~ Score saving is not working Rep++ - by Jarnu - 24.09.2012, 17:44
Re: ~URGENT~ Score saving is not working Rep++ - by Biess - 24.09.2012, 17:46
Re: ~URGENT~ Score saving is not working Rep++ - by Jarnu - 24.09.2012, 17:48
Re: ~URGENT~ Score saving is not working Rep++ - by Biess - 24.09.2012, 17:51
Re: ~URGENT~ Score saving is not working Rep++ - by Jarnu - 24.09.2012, 17:56
Re: ~URGENT~ Score saving is not working Rep++ - by Biess - 24.09.2012, 17:57
Re: ~URGENT~ Score saving is not working Rep++ - by Jarnu - 24.09.2012, 17:58

Forum Jump:


Users browsing this thread: 1 Guest(s)