10.03.2012, 04:55
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
i got this error
one question how can i use sscanf in making /login and /register
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;
}
Код:
error 035: argument type mismatch (argument 1)