їDIALOG_STYLE_LIST?
#3

Код:
new SlotItem[7];

CMD:gps(playerid,params[]) 
{ 
    new gps[70*6], temp[60];
    for(new i = 1; i < 7; i++){ 
        if(InfoV[playerid][i][vPuedeCrearse]){
        	SlotItem[i] = InfoV[playerid][vID];
        	format(temp, sizeof(temp), "%s (ID: %i)\n", GetVehicleName(InfoV[playerid][i][vModelo]),InfoV[playerid][vID]);
        	strcat(gps, temp);
        } 
    } 
    ShowPlayerDialog(playerid,DIALOG_GPS,DIALOG_STYLE_LIST,"Tus vehнculos",gps,"Localizar","Salir"); 
    return 1; 
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
	switch(dialogid)
	{
		case DIALOG_GPS:
		{
                        if(!response) return 0;
			new Float:x,Float:y,Float:z;
			GetVehiclePos(SlotItem[listitem+1], x, y, z);
			return 1;
		}
	}
	return 0;
}
Reply


Messages In This Thread
їDIALOG_STYLE_LIST? - by Ghost112397 - 22.05.2016, 06:00
Re: їDIALOG_STYLE_LIST? - by lucesita - 22.05.2016, 06:37
Respuesta: їDIALOG_STYLE_LIST? - by aoEXE - 22.05.2016, 18:11

Forum Jump:


Users browsing this thread: 1 Guest(s)