help me please :D
#1

its been fixed, thanks for who helped me
Reply
#2

Did you make a folder in your scriptfiles named "Cadmin/Users"?
Reply
#3

Quote:
Originally Posted by case 1337:
Посмотреть сообщение
Did you make a folder in your scriptfiles named "Cadmin/Users"?
Quote:
Originally Posted by [OC]MestreKiller
Посмотреть сообщение
i have all the file and stuff
There's your answer.
Reply
#4

Quote:
Originally Posted by [FU]Victious
Посмотреть сообщение
There's your answer.
Tanks

To poster: Well does the command even work? Did you put:

pawn Код:
dcmd("register", 8, cmdtext);
under OnPlayerCommandText? Otherwise I can't find the problem.
Reply
#5

Quote:
Originally Posted by case 1337:
Посмотреть сообщение
Tanks

To poster: Well does the command even work? Did you put:

pawn Код:
dcmd("register", 8, cmdtext);
under OnPlayerCommandText? Otherwise I can't find the problem.
yes i did
Reply
#6

Quote:
Originally Posted by case 1337:
Посмотреть сообщение
Tanks

To poster: Well does the command even work? Did you put:

pawn Код:
dcmd("register", 8, cmdtext);
under OnPlayerCommandText? Otherwise I can't find the problem.
You would have errors/warnings if he didn't already have that.
Reply
#7

Try this. For some reason this code worked for me. After all you might of forgotten a message below the dini_Create stuff.

pawn Код:
dcmd_register(playerid,params[])
{
    new file[128],pName[MAX_PLAYER_NAME];
    if(PInfo[playerid][Regged] == 1) return SendClientMessage(playerid,red,"Info: You are already registered");
    GetPlayerName(playerid,pName,sizeof(pName));
    format(file,sizeof(file),"Cadmin/Users/%s.ini",pName);
    if(!strlen(params)) return SendClientMessage(playerid, orange,"Info: /register [password]");
    if(!dini_Exists(file))
    {
        dini_Create(file);
        dini_Set(file,"Password",params);
        dini_IntSet(file,"Level",0);
        dini_IntSet(file,"Muted",0);
        PInfo[playerid][Regged] = 1;
        SendClientMessage(playerid, 0xFFFFFFAA, "Does it work?");
        return true;
    }
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)