Problem with command
#1

I make vehicle system on my server (MySQL) and i have one problem with command.

Код:
COMMAND:v(playerid, params[])
{
	new str[100];
	format(str, sizeof(str), "SELECT `Name` FROM `Vehicles` WHERE `Owner` = '%s'", PlayerName(playerid));
	mysql_query(str);
	mysql_store_result();
	
	if(mysql_num_rows())
	{
		new vName = mysql_fetch_int();
		format(str, sizeof(str), "%s\n", vName);
		ShowPlayerDialog(playerid, 123, DIALOG_STYLE_LIST, "Vehicles", str, "OK", "Cancel");
		
	}
	mysql_free_result();
	return 1;
}
This command doesn't work. What's wrong?
Reply


Messages In This Thread
Problem with command - by PapaSmerf - 17.12.2012, 18:39
Re: Problem with command - by Konstantinos - 17.12.2012, 18:43
Re: Problem with command - by PapaSmerf - 17.12.2012, 18:49
Re: Problem with command - by Konstantinos - 17.12.2012, 18:58
Re: Problem with command - by Djole1337 - 17.12.2012, 19:08
Re: Problem with command - by PapaSmerf - 18.12.2012, 12:18
Re: Problem with command - by Djole1337 - 18.12.2012, 12:23
Re: Problem with command - by PapaSmerf - 18.12.2012, 12:27
Re: Problem with command - by PapaSmerf - 18.12.2012, 12:46
Re: Problem with command - by PapaSmerf - 19.12.2012, 14:16

Forum Jump:


Users browsing this thread: 2 Guest(s)