How do I convert this part to threaded mysql?
#3

pawn Код:
forward GetRecord(playerid);
public GetRecord(playerid)
{
    new r_msg[500], dialogstring[500], liRows = cache_get_row_count( );

    if(liRows < 1)
        return SendClientMessage(playerid, COLOUR_GREY, "No records found.");

    for( new n = 0; n < liRows; n ++ )
    {
        cache_get_row(n, 0, r_msg);
        sscanf(r_msg, "p<|>e<iiiis[24]iiii>", PlayerArrests[n]);
        format(dialogstring, sizeof(dialogstring), "%s"#COL_WHITE"%s\n", dialogstring, PlayerArrests[n][ar_cr]);
    }

    strcpy(Pdialogstring[playerid], dialogstring, 200);
    ShowPlayerDialog(playerid, DIALOG_RECORDS, DIALOG_STYLE_LIST, "Showing 10 Latest Records.", dialogstring, "Select", "Black");
    return 1;
}
Reply


Messages In This Thread
How do I convert this part to threaded mysql? - by Dokins - 08.08.2015, 16:24
Re: How do I convert this part to threaded mysql? - by Dokins - 10.08.2015, 13:32
Re: How do I convert this part to threaded mysql? - by IstuntmanI - 10.08.2015, 14:01
Re: How do I convert this part to threaded mysql? - by Dokins - 10.08.2015, 14:14
Re: How do I convert this part to threaded mysql? - by DaniceMcHarley - 10.08.2015, 14:58

Forum Jump:


Users browsing this thread: 3 Guest(s)