Return query on the same function
#4

Well, I don't know how but I did this way and worked

pawn Код:
new command[8] = "cmdkick";
    new cmdlevel;

    mysql_format(Mysql_users, query, sizeof(query), "SELECT * FROM `commands` WHERE `command` = '%s'", command);

    mysql_query(Mysql_users, query);

    new rows = cache_num_rows();
    if(rows) {
        cmdlevel = cache_get_field_content_int(0, "adminlevel", Mysql_users);
    }
Reply


Messages In This Thread
Return query on the same function - by BillieJoe - 02.02.2015, 22:04
Re: Return query on the same function - by denNorske - 02.02.2015, 22:24
Re: Return query on the same function - by BillieJoe - 02.02.2015, 22:34
Re: Return query on the same function - by BillieJoe - 02.02.2015, 22:41
Re: Return query on the same function - by Sime30 - 02.02.2015, 22:42
Re: Return query on the same function - by denNorske - 03.02.2015, 00:25
Re: Return query on the same function - by Abagail - 03.02.2015, 00:35

Forum Jump:


Users browsing this thread: 2 Guest(s)