Getting the name of listitem
#1

Hello friends. Searched but did not find a pretty result.
How can I get the name of the incoming data with Lisitem. I mean is not clear data from the database lists a certain number of sounds and 5 is 10, do not be. Therefore, if (listitem == 1) I can not do something like this. Well, what can I do?
Reply
#2

https://sampwiki.blast.hk/wiki/OnDialogResponse

Quote:

inputtext[] The text entered into the input box by the player or the selected list item text.

Reply
#3

Код:
case 8:
		            {
		                new query[256], yazi[512], string[512];
					    format(query, sizeof(query), "SELECT * FROM klanlar");
					    mysql_query(query);
					    mysql_store_result();
					    new i = 0;
					    while(mysql_fetch_row_format(query,"|"))
					    {
					        i++;
					        mysql_fetch_field_row(string,"klan_isim");
					        format(yazi,sizeof(yazi),"%s\n{ff0000}%d) {ffffff}%s\n",yazi,i, string);
					    }
					    mysql_free_result();
		                ShowPlayerDialog(playerid, KLAN_WS, DIALOG_STYLE_LIST, "KLAN WS",yazi,"Davet","Iptal");
		            }
		        }
		    }
		}
		case KLAN_WS:
		{
		    if(response)
		    {
		        //Klan sorgula
				new query[256], klanWsLider[MAX_PLAYERS];
				format(query, sizeof(query),"SELECT * FROM klanlar WHERE klan_isim = '%s'",listitem);
				mysql_query(query);
                                .
                                .
                                .
Did not understand what I mean. With the name of the incoming data dialog does not question the need to Lisitem another. But I can not get the name of the incoming data with listitem. How do I get?
Reply
#4

help please .. :/
Reply
#5

pawn Код:
if(!strcmp(inputtext, SomeString))
{
    // Do Something
}
Reply
#6

Stop bumping threads. :3
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)