07.12.2010, 08:13
(
Последний раз редактировалось nutzkung69; 07.12.2010 в 10:57.
)
pawn Код:
if(strcmp(cmd, "/checkmember", true) == 0)
{
if (PlayerInfo[playerid][pLeader] > 0)
{
new line[1024];
new query[64];
format(query, sizeof(query), "SELECT Name FROM players WHERE Member = '%s'", PlayerInfo[playerid][pLeader]);
samp_mysql_query(query);
samp_mysql_store_result();
while (samp_mysql_fetch_row(line))
{
format(string, 256, "MemberName: ЄЧиН %s", line);
SendAdminMessage(COLOR_SYSTEM, string);
}
return 1;
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " you are not authorized to use that command!");
}
}
but show name member != playerid