argument type mismatch
#1

Hello, since my registration system got bugged, im trying to make it in a command, here is:

pawn Код:
CMD:register(playerid, params[])
{
        if(!params[0]) return SendClientMessage(playerid, COLOR_ORANGE, "USAGE: /register [password]");
        new name[MAX_PLAYER_NAME]; GetPlayerName(playerid,name,sizeof name);
        new file[128];
        format(file, sizeof(file), "/Users/%s.ini", name);
        new INI:handler = INI_Open(file);
        INI_SetTag(file,"data");
        INI_WriteInt(file,"Password",udb_hash(params));
        INI_WriteInt(file,"Cash",0);
        INI_WriteInt(file,"Admin",0);
        INI_WriteInt(file,"Kills",0);
        INI_WriteInt(file,"Deaths",0);
        INI_WriteInt(file,"NoPm",0);
        INI_WriteInt(file,"Mute",0);
        INI_WriteInt(file,"Vip",0);
        INI_WriteInt(file,"C4",0);
        INI_WriteInt(file,"Banned",0);
        INI_WriteInt(file,"Cookies",0);
        INI_WriteInt(file,"Warn",0);
        INI_WriteInt(file, "RegisterDate_day", Day);
        INI_WriteInt(file, "RegisterDate_mon", Month);
        INI_WriteInt(file, "RegisterDate_year",Year);
        INI_WriteInt(file, "RegisterDate_hour",Hour);
        INI_WriteInt(file, "RegisterDate_min", Minute);
        INI_WriteInt(file, "RegisterDate_sec", Second);
        INI_WriteInt(file, "Min", 0);
        INI_WriteInt(file, "Hour", 0);
        INI_WriteInt(file, "Sec", 0);
        INI_WriteInt(file, "Jailed", 0);
        INI_WriteInt(file, "Logged", 0);
        INI_WriteInt(file, "AdminActions", 0);
        INI_WriteInt(file, "Rank", 0);
        INI_Close(handler);
        new string[128]; format(string, sizeof(string), "You have successfully registered your account with the password \'%s\'. You have been automatically logged in.", params);
        return SendClientMessage(playerid, red, string);
}
But i get: error 035: argument type mismatch (argument 1)

Starting from:
pawn Код:
INI_SetTag(file,"data");
to
pawn Код:
INI_WriteInt(file, "Rank", 0);
What's wrong with that?
Reply


Messages In This Thread
argument type mismatch - by Face9000 - 14.12.2012, 17:26
Re: argument type mismatch - by Lordzy - 14.12.2012, 18:02
Re: argument type mismatch - by Face9000 - 14.12.2012, 18:15
Re: argument type mismatch - by Lordzy - 14.12.2012, 18:19
Re: argument type mismatch - by Face9000 - 14.12.2012, 18:19
Re: argument type mismatch - by Lordzy - 14.12.2012, 18:26
Re: argument type mismatch - by Face9000 - 14.12.2012, 18:36
Re: argument type mismatch - by Lordzy - 14.12.2012, 18:43
Re: argument type mismatch - by Djole1337 - 14.12.2012, 18:56
Re: argument type mismatch - by Face9000 - 14.12.2012, 19:01

Forum Jump:


Users browsing this thread: 1 Guest(s)