3 errors! -
DragonWong - 21.02.2011
line 79
Код:
new name[MAX_PLAYER_NAME], file[256];
line 95
Код:
new name[MAX_PLAYER_NAME], file[256];
Код:
new name[MAX_PLAYER_NAME], file[256], string[128];
GetPlayerName(playerid, name, sizeof(name));
format(file, sizeof(file), SERVER_USER_FILE, name);
if(!response) return Kick(playerid);
if (!strlen(inputtext)) return
ShowPlayerDialog(playerid, 0, 1,"Register","Welcome,\n Please register your account to save your stats","Register","Cancel");
dini_Create(file);
dini_Set(file, "AdminLevel",PlayerInfo[playerid][AdminLevel] = 0);
dini_Set(file, "Money",PlayerInfo[playerid][Money] = 500);
dini_Set(file, "Score",PlayerInfo[playerid][Score] = 0);
gPlayerLogged[playerid] = 1;
}
if (dialogid == 1)
{
new name[MAX_PLAYER_NAME], file[256], string[128];
GetPlayerName(playerid, name, sizeof(name));
format(file, sizeof(file), SERVER_USER_FILE, name);
if(!response) return Kick(playerid);
if (!strlen(inputtext)) return ShowPlayerDialog(playerid, 1, 1,"Login","Welcome back,\n Please enter your password to log in","Login","Cancel");
new tmp;
tmp = dini_Int(file, "Password");
if(udb_hash(inputtext) != tmp)
{
SendClientMessage(playerid, COLOR_RED, "Bad password or nickname");
ShowPlayerDialog(playerid, 1, 1,"Login","Welcome back,\n Please enter your password to log in","Login","Cancel");
}
else
{
gPlayerLogged[playerid] = 1;
PlayerInfo[playerid][AdminLevel] = dini_Set(file, "AdminLevel");
SetPlayerScore(playerid, PlayerInfo[playerid][Score]);
GivePlayerMoney(playerid, dini_Set(file, "Money")-GetPlayerMoney(playerid));
}
}
return 1;
}
C:\Documents and Settings\Sanaв.SANA-CHRIDEQ\Bureau\SA-MP Server\filterscripts\Administration.pwn(79) : warning 219: local variable "name" shadows a variable at a preceding level
C:\Documents and Settings\Sanaв.SANA-CHRIDEQ\Bureau\SA-MP Server\filterscripts\Administration.pwn(95) : warning 219: local variable "name" shadows a variable at a preceding level
C:\Documents and Settings\Sanaв.SANA-CHRIDEQ\Bureau\SA-MP Server\filterscripts\Administration.pwn(295) : warning 219: local variable "name" shadows a variable at a preceding level
C:\Documents and Settings\Sanaв.SANA-CHRIDEQ\Bureau\SA-MP Server\filterscripts\Administration.pwn(302) : error 035: argument type mismatch (argument 3)
C:\Documents and Settings\Sanaв.SANA-CHRIDEQ\Bureau\SA-MP Server\filterscripts\Administration.pwn(303) : error 035: argument type mismatch (argument 3)
C:\Documents and Settings\Sanaв.SANA-CHRIDEQ\Bureau\SA-MP Server\filterscripts\Administration.pwn(304) : error 035: argument type mismatch (argument 3)
C:\Documents and Settings\Sanaв.SANA-CHRIDEQ\Bureau\SA-MP Server\filterscripts\Administration.pwn(295) : warning 204: symbol is assigned a value that is never used: "string"
C:\Documents and Settings\Sanaв.SANA-CHRIDEQ\Bureau\SA-MP Server\filterscripts\Administration.pwn(295 -- 309) : warning 219: local variable "name" shadows a variable at a preceding level
C:\Documents and Settings\Sanaв.SANA-CHRIDEQ\Bureau\SA-MP Server\filterscripts\Administration.pwn(324) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Sanaв.SANA-CHRIDEQ\Bureau\SA-MP Server\filterscripts\Administration.pwn(326) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Sanaв.SANA-CHRIDEQ\Bureau\SA-MP Server\filterscripts\Administration.pwn(309) : warning 204: symbol is assigned a value that is never used: "string"
C:\Documents and Settings\Sanaв.SANA-CHRIDEQ\Bureau\SA-MP Server\filterscripts\Administration.pwn(336) : warning 203: symbol is never used: "name"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
3 Errors.
Re: 3 errors! -
Marricio - 21.02.2011
Its cause you have already defined the vars.
Delete new lines in the code, and compile it again.