multiple variables to a string
#9

pawn Код:
public CheckCharges(playerid)
{
    new rows = cache_get_row_count();
    if(rows == 0) SetPVarString(playerid, "mdcreturn", "No charges found...");
    else
    {
        new list[128], charges[520];
        for(new i = 0; i < rows; i++)
        {
            cache_get_field_content(i, "Reason", list);
            format(charges, sizeof(charges), "%s%s ", charges, list);
        }
        print(charges);
        SetPVarString(playerid, "mdcreturn", charges);
    }
    return 1;
}
Reply


Messages In This Thread
multiple variables to a string - by izeatfishz - 27.01.2016, 18:34
Re: multiple variables to a string - by Virtual1ty - 27.01.2016, 19:31
Re: multiple variables to a string - by izeatfishz - 27.01.2016, 19:35
Re: multiple variables to a string - by Virtual1ty - 27.01.2016, 19:44
Re: multiple variables to a string - by izeatfishz - 27.01.2016, 20:07
Re: multiple variables to a string - by AmigaBlizzard - 27.01.2016, 20:54
Re: multiple variables to a string - by izeatfishz - 28.01.2016, 21:29
Re: multiple variables to a string - by izeatfishz - 08.02.2016, 18:37
Re: multiple variables to a string - by Jefff - 08.02.2016, 20:53
Re: multiple variables to a string - by Vince - 08.02.2016, 21:41

Forum Jump:


Users browsing this thread: 1 Guest(s)