06.01.2018, 09:12
Hello, I was wondering if there is any easyer/better way to do the following:
I did try:
But sadly that doesn't work. Any other way to this?
PHP код:
if(listitem == 0)
{
format(file, sizeof(file), "Data/Reports/r0.ini");
}
if(listitem == 1)
{
format(file, sizeof(file), "Data/Reports/r1.ini");
}
if(listitem == 2)
{
format(file, sizeof(file), "Data/Reports/r2.ini");
}
PHP код:
format(file, sizeof(file), "Data/Reports/r%d.ini", listitem);