SA-MP Forums Archive
Can anyone help me with this dialog? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Can anyone help me with this dialog? (/showthread.php?tid=304435)



Can anyone help me with this dialog? - Danny - 18.12.2011

Hi,

I'm trying to make this work, but it is returning 0 (Unknown command) all the time! It really annoys me. Can anyone help me?

Код:
CMD:desk(playerid, params[])
{
	if(!IsPlayerInRangeOfPoint(playerid, 3.0, 234.3154, 158.6071, 1003.0234)) return SendErrorMessage(playerid,"Om dit command te gebruiken moet u bij de LVPD-balie staan.","To use this command you need to stand at the LVPD-desk.");
	
	if(PlayerVehicles[playerid][0][IsImpounded]==1){format(normalstring[0], 128,"[Vehicle (0)] Name: %s Numberplate: %s Fee: $500",GetVehicleName(PlayerVehiclesID[playerid][0]),PlayerVehicles[playerid][0][vNumberplate]);}
	if(PlayerVehicles[playerid][1][IsImpounded]==1){format(normalstring[1], 128,"[Vehicle (1)] Name: %s Numberplate: %s Fee: $500",GetVehicleName(PlayerVehiclesID[playerid][1]),PlayerVehicles[playerid][1][vNumberplate]);}
	TemporaryDialogIntData[playerid][0]=0;
	format(largestring[0],400,"%s\n%s",normalstring[0],normalstring[1]);
	ShowDialogToPlayer(playerid,66,DIALOG_STYLE_LIST,"In beslag genomen voertuigen","Impounded vehicles",largestring[0],largestring[0],"Koop terug","Sluiten","Buy back","Close");
	return 1;
}
Greetz.
Danny


Re: Can anyone help me with this dialog? - LiamM - 18.12.2011

pawn Код:
ShowDialogToPlayer
Have you got a define for that? because if not thats where your going wrong, it should be ShowPlayerDialog.