What it wrong
#1

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!");
        }
    }
it not show name member == playerid
but show name member != playerid
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)