Register Command with sscanf
#1

hey guys i'm creating my rank system. i decide to make a rank system that doesn't use a register dialog

here is my code. My Code is not finish yet

pawn Код:
CMD:register(playerid, params[])
{
   new pass;
   if(IsPlayerRegister[playerid] == 1) return SendClientMessage(playerid, COLOR_RED, "You are already registered!");
   if(sscanf(params, "i", pass)) return SendClientMessage(playerid, COLOR_RED, "SYNTAX: /register [pass]");
   format(file, sizeof(file), "Rank/Users/%s.ini", pName(playerid));
   if(fexist(file)) return SendClientMessage(playerid, COLOR_RED, "Your account is already registered from our database");
   if(!dini_Exists(file))
   {
        dini_Create(file);
        dini_IntSet(file, "Password", udb_hash(pass));
   }
   return 1;
}
i got this error

Код:
error 035: argument type mismatch (argument 1)
one question how can i use sscanf in making /login and /register
Reply


Messages In This Thread
Register Command with sscanf - by Reklez - 10.03.2012, 04:55
Re: Register Command with sscanf - by Ballu Miaa - 10.03.2012, 05:01
Re: Register Command with sscanf - by Reklez - 10.03.2012, 05:11
Re: Register Command with sscanf - by Ballu Miaa - 10.03.2012, 05:28
Re: Register Command with sscanf - by FarSe. - 10.03.2012, 05:30
Re: Register Command with sscanf - by eesh - 10.03.2012, 05:34
Re: Register Command with sscanf - by Reklez - 10.03.2012, 05:50
Re: Register Command with sscanf - by AustinJ - 10.03.2012, 05:53
Re: Register Command with sscanf - by Reklez - 10.03.2012, 05:59
Re: Register Command with sscanf - by AustinJ - 10.03.2012, 06:03

Forum Jump:


Users browsing this thread: 1 Guest(s)