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: Dialog (
/showthread.php?tid=420672)
Dialog -
NathNathii - 06.03.2013
I wanna change this dialog but how? O_O
pawn Код:
// This command lists all commands for normal players (admin-level 0)
COMMAND:cmds(playerid, params[])
{
// Send the command to all admins so they can see it
SendAdminText(playerid, "/cmds", params);
// Check if the player has logged in
if (APlayerData[playerid][LoggedIn] == true)
{
CommandList_Create(playerid); // Create a list of commands (only the first 4 commands) and show the dialog
}
else
return 0;
// Let the server know that this was a valid command
return 1;
}
Re: Dialog -
Scrillex - 06.03.2013
And at top of the script add
#define DIALOG_Your 1 (or some random number)
pawn Код:
COMMAND:cmds(playerid, params[])
{
// Send the command to all admins so they can see it
SendAdminText(playerid, "/cmds", params);
// Check if the player has logged in
if (APlayerData[playerid][LoggedIn] == true)
{
ShowPlayerDialog(playerid, DIALOG_Your, DIALOG_STYLE_MSGBOX,"Player commands""your commands here" "Close" "");
}
else
return 0;
// Let the server know that this was a valid command
return 1;
}
Re: Dialog -
NathNathii - 06.03.2013
1 Error
Код:
C:\Users\linda\Documents\GT Testing\pawno\include\PPC_PlayerCommands.inc(2510) : error 017: undefined symbol "Msg"
Re: Dialog -
Scrillex - 06.03.2013
show PPC_PlayerCommands.inc that line!