SA-MP Forums Archive
help me please :D - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: help me please :D (/showthread.php?tid=198277)



help me please :D - MestreKiller - 11.12.2010

its been fixed, thanks for who helped me


Re: help me please :D - case 1337: - 11.12.2010

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


Re: help me please :D - WillyP - 11.12.2010

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.


Re: help me please :D - case 1337: - 11.12.2010

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.


Re: help me please :D - MestreKiller - 11.12.2010

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


Re: help me please :D - WillyP - 11.12.2010

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.


Re: help me please :D - case 1337: - 11.12.2010

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;
}