Admin Help in dialog {script help}
#1

Hey guys iv made this script and i need somthing so i can send the request to the admins online
here is my code
pawn Код:
if(listitem == 0) // They selected the first item - Desert Eagle
            {
                GetPlayerName(message, name, sizeof(name));
                format(messagesend, sizeof(messagesend), "Admin Request Help\n Name:%s\nMessage:%s\n Use /aresponde [id] [responde message] to send your message",name,inputtext);
                message = strval(inputtext);
                ShowPlayerDialog(playerid, DIALOG_HELP_RAH,DIALOG_STYLE_INPUT,"{FD0006}Admin Help Request","Please Enter Your Message Below", "Send", "");
                if(PlayerInfo[playerid][pAdmin] >= 1)
                {
                ShowPlayerDialog(,1000000, DIALOG_STYLE_MSGBOX, "Notice", messagesend, "Close", "");
                }
            }
Reply
#2

pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++) {
if(PlayerInfo[i][pAdmin] >= 1)
{
ShowPlayerDialog(i,1000000, DIALOG_STYLE_MSGBOX, "Notice", messagesend, "Close", "");
}
it will help.. for sure ^^
Reply
#3

thanks for this it helps but its not showing the dialog
Reply
#4

pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++) {
if(PlayerInfo[i][pAdmin] >= 1) {
if(IsPlayerConnected(i)) {
ShowPlayerDialog(i,1000000, DIALOG_STYLE_MSGBOX, "Notice", messagesend, "Close", "");
}
}
}
forgot to check if the player is connected.. please try now.
Reply
#5

ok one problem its now showing the response dialog how do i make it so when they click send it then does it
Reply
#6

uh.. didn't got you. explain please

and +rep please :P
Reply
#7

ok ill explain

i type /help then click on request admin help then its automatically sends the message it to me when i didn't enter one also its get not got
Reply
#8

Quote:
Originally Posted by Jarnu
Посмотреть сообщение
pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++) {
if(PlayerInfo[i][pAdmin] >= 1) {
if(IsPlayerConnected(i)) {
ShowPlayerDialog(i,1000000, DIALOG_STYLE_MSGBOX, "Notice", messagesend, "Close", "");
}
}
}
forgot to check if the player is connected.. please try now.
Well, as I am concerned, now it's NOT NEEDED anymore(in fact useless), to check if a player is connected when writing a code(unless it's a param containing command).It won't be causing any bugs, if you don't check the fact that the player is connected.AND SERIOUSLY, dialogid is 1 million, that is far away OVER THE ALLOWED limit of dialogs that can be displayed.Limit is 32767.
Reply
#9

well put it this way its got a glitch
Reply
#10

bump
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)