Dialog
#1

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;
}
Reply
#2

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;
}
Reply
#3

1 Error

Код:
C:\Users\linda\Documents\GT Testing\pawno\include\PPC_PlayerCommands.inc(2510) : error 017: undefined symbol "Msg"
Reply
#4

show PPC_PlayerCommands.inc that line!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)