Dialog doesn't show up
#1

Hello.
my dialog doesn't show up.
This is my code:

PHP код:
//The command:
/*============================================================================= */
new query[200];
format(query,sizeof(query),"SELECT * FROM vehicles WHERE vOwner='%s'",Name(playerid));
mysql_tquery(connection,query,"VehicleTow","i",playerid);
return 
1;
//The function:
/* ============================================================================= */
forward VehicleTow(playerid);
public 
VehicleTow(playerid)
{
    new 
TowString[3000];
    if(!
cache_num_rows()) return SendClientError(playerid,"You do not have any vehicles.");
    for(new 
i=0i<cache_get_row_count(); i++)
    {
    new 
carid cache_get_field_content_int(i,"id");
    
strcat(TowString,sprintf("%s(%i)\n",GetVehicleName(Vehicle[carid][vModel]),Vehicle[carid][vModel]));
    }
    
ShowPlayerDialog(playerid,91141,DIALOG_STYLE_LIST,sprintf("%s's vehicles.",Name(playerid)),TowString,"Tow","Cancel");
    return 
1;
}
/* ============================================================================= */ 
Reply


Messages In This Thread
Dialog doesn't show up - by justjamie - 27.10.2016, 16:23
Re: Dialog doesn't show up - by StR_MaRy - 27.10.2016, 16:26
Re: Dialog doesn't show up - by justjamie - 27.10.2016, 16:29
Re: Dialog doesn't show up - by StR_MaRy - 27.10.2016, 16:56
Re: Dialog doesn't show up - by justjamie - 27.10.2016, 16:58

Forum Jump:


Users browsing this thread: 1 Guest(s)