how to define this
#1

hi,
pawn Код:
if(listitem == 1) {
                new You[MAX_PLAYER_NAME];
                new ClickedPlayerID[MAX_PLAYERS];
                ClickedPlayerID[playerid] = clickedplayerid;
                GetPlayerName(clickedplayerid,You,MAX_PLAYER_NAME);
                SetPVarInt(playerid,"ClickedPlayer",clickedplayerid);
                ShowPlayerDialog(playerid,909,DIALOG_STYLE_INPUT,"private Message!","Write Your Message Here","Send","Close");
                }
Код:
E:\Freeroam World\filterscripts\admin.pwn(960) : error 017: undefined symbol "clickedplayerid"
E:\Freeroam World\filterscripts\admin.pwn(961) : error 017: undefined symbol "clickedplayerid"
how to define "clickedplayerid" to the dialog Response?
Reply
#2

You would need to change it in the include file, which you shouldn't do.
Reply
#3

how
Reply
#4

Use OnPlayerClickPlayer


https://sampwiki.blast.hk/wiki/OnPlayerClickPlayer
Reply
#5

Quote:
Originally Posted by eesh
Посмотреть сообщение
i said:
Quote:
Originally Posted by misho1
Посмотреть сообщение
hi,
pawn Код:
if(listitem == 1) {
                new You[MAX_PLAYER_NAME];
                new ClickedPlayerID[MAX_PLAYERS];
                ClickedPlayerID[playerid] = clickedplayerid;
                GetPlayerName(clickedplayerid,You,MAX_PLAYER_NAME);
                SetPVarInt(playerid,"ClickedPlayer",clickedplayerid);
                ShowPlayerDialog(playerid,909,DIALOG_STYLE_INPUT,"private Message!","Write Your Message Here","Send","Close");
                }
Код:
E:\Freeroam World\filterscripts\admin.pwn(960) : error 017: undefined symbol "clickedplayerid"
E:\Freeroam World\filterscripts\admin.pwn(961) : error 017: undefined symbol "clickedplayerid"
how to define "clickedplayerid" to the dialog Response?
Reply
#6

Quote:
Originally Posted by misho1
Посмотреть сообщение
i said:
yea but you cant get a clickedplayerid from normal dialogs. OnPlayerClieckedPlayer is from the TAB dialog.

if you still wanna use OnDialogResponse, can you show your ShowplayerDialog?
Reply
#7

i just want that when i click on player it show dialog that i teleport him or show his stats or pm him or do action on him (ban,kick,mute,freeze,gethere and goto)
but when i add clickedplayerid on dialog respons. i get errors

pawn Код:
public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
    ShowPlayerDialog(playerid,1909,DIALOG_STYLE_LIST,"Player","Action \nPM\nStats\nTeleport","Select","Close");
    return 1;
}
Reply
#8

pawn Код:
new ClickedPlayerID[MAX_PLAYERS]; // at the top
if(listitem == 1) {
                new You[MAX_PLAYER_NAME];
                GetPlayerName(ClickedPlayerID[playerid],You,MAX_PLAYER_NAME);
                SetPVarInt(playerid,"ClickedPlayer",ClickedPlayerID[playerid]);
                ShowPlayerDialog(playerid,909,DIALOG_STYLE_INPUT,"private Message!","Write Your Message Here","Send","Close");
                }


public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
ClickedPlayerID[playerid] = clickedplayerid;  
ShowPlayerDialog(playerid,1909,DIALOG_STYLE_LIST,"Player","Action \nPM\nStats\nTeleport","Select","Close");
    return 1;
}
didn't test
Reply
#9

thnx!!!! i rep u
Reply
#10

sry sry sry sry sry for double post
but y it i get error in (listitem == 3)
pawn Код:
}
                if(listitem == 3) {
                new You[MAX_PLAYER_NAME];
                new Float:X, Float:Y, Float:Z;
                GetPlayerName(ClickedPlayerID[playerid],You,MAX_PLAYER_NAME);
                SetPVarInt(playerid,"ClickedPlayer",ClickedPlayerID[playerid]);
                GetPlayerPos(clickedplayerid, X, Y, Z);
                SetTimerEx("SetPlayerPosEx", 1000, false, "dfff", playerid,X+3,Y,Z+3);
                }
undefine symbol clickedplayerid

i added like in (listitem == 1) ??!!??
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)