ShowPlayerDialog not working
#1

so i made a cmd "/cmds" but when i type it ingame it just says:
Here is the list of all commands:
Unknown Command.

code is here:
Код:
	if (strcmp("/cmds", cmdtext, true, 99999) == 0)
	{
 		SendClientMessage(playerid, COLOR_WHITE , "Here is the list of all available commands.");
		ShowPlayerDialog(playerid, 99999, DIALOG_STYLE_MSGBOX, "Commands",
		"/respawn - respawn yourself\n\
		/heal - Fill up your health and armour\n\
		/weapons - Arm Up yourself\n\
		/stunt - Teleport yourself to the stunt arena or place.",
		"Ok, Got It.", "");
	}
Reply
#2

if (strcmp("/cmds", cmdtext, true, 99999) == 0)
{
SendClientMessage(playerid, COLOR_WHITE , "Here is the list of all available commands.");
ShowPlayerDialog(playerid, 99999, DIALOG_STYLE_MSGBOX, "Commands",
"/respawn - respawn yourself\n\
/heal - Fill up your health and armour\n\
/weapons - Arm Up yourself\n\
/stunt - Teleport yourself to the stunt arena or place.",
"Ok, Got It.", "");
return 1;
}
Reply
#3

not working
Reply
#4

The first thing I do when something is "not working" (yeah, that's a helpful description) is consult the wiki. Specifically this line:

dialogid: an ID to assign this dialog to, so responses can be processed. Max dialogid is 32767. Using negative values will close any open dialog.
Reply
#5

thanks so much sir, <3
sir can i ask if how i can make a vehiclke soawner? any hint or tip
Reply
#6

Quote:
Originally Posted by StevenLV
Посмотреть сообщение
thanks so much sir, <3
sir can i ask if how i can make a vehiclke soawner? any hint or tip
****** Search Bro.

https://sampforum.blast.hk/showthread.php?tid=473946
https://sampforum.blast.hk/showthread.php?tid=273055
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)