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"
hi,
pawn Код:
Код:
E:\Freeroam World\filterscripts\admin.pwn(960) : error 017: undefined symbol "clickedplayerid" E:\Freeroam World\filterscripts\admin.pwn(961) : error 017: undefined symbol "clickedplayerid" |
public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
ShowPlayerDialog(playerid,1909,DIALOG_STYLE_LIST,"Player","Action \nPM\nStats\nTeleport","Select","Close");
return 1;
}
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;
}
}
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);
}