Problem with command
#5

Are you trying to do something like:
pawn Код:
CMD:v(playerid, params[])
{
    new
        iQuery[128]
    ;
    format(iQuery, sizeof(iQuery), "SELECT `Name` FROM `Vehicles` WHERE `Owner` = '%s'", PlayerName(playerid));
    mysql_query(iQuery);
    mysql_store_result();
    if(mysql_num_rows() != 0)
    {
        while(mysql_retrieve_row())
        {
            new
                iVeh[12],
                iStr[128]
            ;
            mysql_fetch_field_row(iVeh, "Name");
            format(iStr, sizeof(iStr), "%s%s\n", iStr, iVeh);
        }
        ShowPlayerDialog(playerid, 123, DIALOG_STYLE_LIST, "Vehicles", iStr, "OK", "Cancel");
    }
    mysql_free_result();
    return 1;
}
?
Reply


Messages In This Thread
Problem with command - by PapaSmerf - 17.12.2012, 18:39
Re: Problem with command - by Konstantinos - 17.12.2012, 18:43
Re: Problem with command - by PapaSmerf - 17.12.2012, 18:49
Re: Problem with command - by Konstantinos - 17.12.2012, 18:58
Re: Problem with command - by Djole1337 - 17.12.2012, 19:08
Re: Problem with command - by PapaSmerf - 18.12.2012, 12:18
Re: Problem with command - by Djole1337 - 18.12.2012, 12:23
Re: Problem with command - by PapaSmerf - 18.12.2012, 12:27
Re: Problem with command - by PapaSmerf - 18.12.2012, 12:46
Re: Problem with command - by PapaSmerf - 19.12.2012, 14:16

Forum Jump:


Users browsing this thread: 2 Guest(s)