22.02.2013, 23:54
Код:
(32) : warning 219: local variable "password" shadows a variable at a preceding level (35) : error 035: argument type mismatch (argument 1) (32) : warning 203: symbol is never used: "password" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
pawn Код:
stock LoginPlayer(playerid,const password[]) // line 32
{
new Query[80],Escaped[60];
mysql_real_escape_string(password,Escaped); // line 35
format(Query,sizeof(Query),"SELECT * FROM `stats` WHERE `user` = '%s' AND `password` = '%s'",GetName(playerid),Escaped);
mysql_query(Query);
mysql_store_result();
if(mysql_num_rows() != 0)
{
SendClientMessage(playerid,-1,"You have been logged in!");
LoadStats(playerid);
}
else
{
SendClientMessage(playerid,-1,"Wrong password!");
Kick(playerid);
}
mysql_free_result();
return 1;
}