Help admin script
#1

i know im asking for alot but im new at making admin scripts lol
im using https://sampforum.blast.hk/showthread.php?tid=174575 its a bit hard
i have this code
Код:
dcmd_register(playerid,params[])
{
    new file[256],n[MAX_PLAYER_NAME];
    GetPlayerName(playerid,n,MAX_PLAYER_NAME);
    format(file,sizeof(file),"MyAdmin/Users/%s.txt",n);
    if(dini_Exists(file)) return SendClientMessage(playerid,YELLOW,"You are already registered!");
    if(PInfo[playerid][Regged] == 1) return SendClientMessage(playerid,LIGHTBLUE,"You are already registered!");
    if(PInfo[playerid][Logged] == 1) return SendClientMessage(playerid,ORANGE,"You are already registered, /login");
    dini_Create(file);
            dini_Set(file,"Password",params);
            dini_IntSet(file,"Regged",1);
            dini_IntSet(file,"Logged",0);
            dini_IntSet(file,"Level",0);
            SendClientMessage(playerid,LIGHTBLUE,"Congratulations, you have just registered, please /login");
            PInfo[playerid][Regged] = 1;
            return 1;
        }
    else // error line
    {
        SendClientMessage(playerid,GREY,"USAGE: /register <Password>");
    }
    return 1; //error line
}
Quote:

C:\Users\james\Desktop\server2\filterscripts\fadmi n.pwn(264) : warning 217: loose indentation
C:\Users\james\Desktop\server2\filterscripts\fadmi n.pwn(272) : error 010: invalid function or declaration
C:\Users\james\Desktop\server2\filterscripts\fadmi n.pwn(276) : error 010: invalid function or declaration
2 Errors.

help me out
Reply


Messages In This Thread
Help admin script - by FireCat - 23.09.2010, 17:18
Re: Help admin script - by Mike_Peterson - 23.09.2010, 17:20
Re: Help admin script - by FireCat - 23.09.2010, 17:39
Re: Help admin script - by DeathOnaStick - 23.09.2010, 17:49
Re: Help admin script - by FireCat - 23.09.2010, 17:51
Re: Help admin script - by The_Moddler - 23.09.2010, 18:17
Re: Help admin script - by FireCat - 23.09.2010, 18:19
Re: Help admin script - by Mike_Peterson - 23.09.2010, 18:29
Re: Help admin script - by FireCat - 23.09.2010, 18:30
Re: Help admin script - by Mike_Peterson - 23.09.2010, 18:33

Forum Jump:


Users browsing this thread: 1 Guest(s)