27.08.2013, 20:16
Okay..the problem is that dialog is not showing format correctly. It shows vehicleid but not gun ids.
Код:
if(listitem == 0) { new string[512]; new vehicleid; new test[512]; vehicleid = GetPlayerVehicleID(playerid); format(string, sizeof(string), " %d - %d\n %d - %s",vehicleid,Autos[vehicleid][vGun1],Autos[vehicleid][vKanep],GunNames[Autos[vehicleid][vGun1]]); ShowPlayerDialog(playerid, DIALOG_AUTOV6TA, DIALOG_STYLE_LIST,"{FF0000}Name - Guns - Bullets", string, "Vali", "Tagasi"); format(test, sizeof(test), " %d %s",vehicleid,GunNames[Autos[vehicleid][vGun1]]); SendClientMessage(playerid, -1, test); }