How to save listitem as a string?
#7

Quote:
Originally Posted by baba1234
Посмотреть сообщение
But it is not input dialog it is listitem?
Thats doesn't matter...in inputtext is the value he clicked.

So if he clicked on America...the inputtext = America...

Then use this function:

Код:
INI_WriteString(File,"Origin", inputtext);
But...you should save just the integer and you can make a function who parse the integers into strings, for e.g. stats:

Код:
stock GetCountry(id) 
{
    new string[32];
    switch(id) {
        case 1: string = "America"; //For example
    }
    return string;
}
Greekz
Reply


Messages In This Thread
How to save listitem as a string? - by baba1234 - 01.06.2015, 15:24
AW: How to save listitem as a string? - by Kaliber - 01.06.2015, 15:27
Re: How to save listitem as a string? - by baba1234 - 01.06.2015, 15:35
AW: How to save listitem as a string? - by Kaliber - 01.06.2015, 15:36
Re: How to save listitem as a string? - by baba1234 - 01.06.2015, 15:40
Re: How to save listitem as a string? - by Konstantinos - 01.06.2015, 15:43
AW: Re: How to save listitem as a string? - by Kaliber - 01.06.2015, 15:43

Forum Jump:


Users browsing this thread: 1 Guest(s)