Help admin script
#7

Quote:
Originally Posted by The_Moddler
Посмотреть сообщение
pawn Код:
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
}
Try to do it by your self next time...
mabe'z i did try stuff but
Quote:

C:\Users\james\Desktop\server2\filterscripts\fadmi n.pwn(263) : warning 217: loose indentation
C:\Users\james\Desktop\server2\filterscripts\fadmi n.pwn(265) : warning 217: loose indentation
C:\Users\james\Desktop\server2\filterscripts\fadmi n.pwn(273) : warning 225: unreachable code
C:\Users\james\Desktop\server2\filterscripts\fadmi n.pwn(273) : warning 217: loose indentation
C:\Users\james\Desktop\server2\filterscripts\fadmi n.pwn(273) : error 029: invalid expression, assumed zero
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.

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)