Posts: 449
Threads: 125
Joined: Apr 2013
Reputation:
0
08.11.2014, 07:59
(
Last edited by buburuzu19; 08/11/2014 at 11:08 AM.
)
I want that liders who are playerVariables[playerid][pGroupRank] == 7; can't click themselves. Wht i tried is up , with groupl but not working.
Posts: 626
Threads: 46
Joined: Oct 2014
Reputation:
0
I didn't understand what error u facing
Posts: 178
Threads: 7
Joined: Oct 2011
Reputation:
0
Please explain better.. I dint understand ->
1: What do you want to do with the code?
2: Whats the error you are facing? [Run-Time error]
3: What does the code do?
Posts: 449
Threads: 125
Joined: Apr 2013
Reputation:
0
LEADERS CAN CLICK THEMSELVES AND I DON'T WANT TO , THEY CAN UNINVITE THEMSELVES AND OTHER STUFF LIKE THIS MAKES THIS A BUG.
I AM TRYING TO MAKE A RESTRICTION BUT IT'S SEEMS THAT DOES NOT WORK.
Posts: 178
Threads: 7
Joined: Oct 2011
Reputation:
0
Caps off! No need to flame. We both posted it on same time.
Can you post the code of primary ShowPlayerDialog? The command
Posts: 449
Threads: 125
Joined: Apr 2013
Reputation:
0
i tryied with if(listitem == playerid) return SCM(playerid, -1, "You can't click on this person"); and i started the server i clicked me and nothing happened.
Posts: 178
Threads: 7
Joined: Oct 2011
Reputation:
0
I think you are understanding listitem wrong.
Listitem is the line which the player clicked. It jus shows the line number. Nothing else.
If the player click first line, listitem = 0
Second line, listitem = 1 ...
5th line, list item = 4
Posts: 449
Threads: 125
Joined: Apr 2013
Reputation:
0
And what is necessary to do 4 fix?
Edit: When i type members i get:
"Los Santos PD members:" - first row
"Membername 1" - second row
"Membername 2" - third row
"Membername 3" - fifth row
"...."
"...."
"...."
I want to disallow the leader of clicking himself.
Posts: 178
Threads: 7
Joined: Oct 2011
Reputation:
0
Better make a different table for group data... So creater / Leader stays on top always..
When you get data from Playerinfo table, it will be mixed up.. Leader might come second etc..
OR
Since only leader can use the command, don't display his name.. He knows he is in the group :P
enum grinfo
{
GP_PlayerName[24],//stores name
GP_GrRank,//ssaves his rank
GP_DBID,//store database_id for saving data
GP_listnumber,//saves the loop number to be used for listitem
GP_days,//days
GP_lastlogged[10],//last logged
Etc
};
new GroupInfo[max_groups][Max_members][grinfo];
Save data when he uses /members..
Stock GetPlayerListData(listitem, groupid)
{
For Loop and return if(GroupInfo[groupid][i][GP_listnumber]==listitem)
Return i;
}
Typing from mobile.. Sorry
Posts: 449
Threads: 125
Joined: Apr 2013
Reputation:
0
Too hard for me , enum is very different at me ... can you intergrate in my command if i give you my command trough PM?
Posts: 303
Threads: 27
Joined: Aug 2013
Reputation:
0
Can you show the ShowPlayerDialog codes of DIALOG_MEMBERS?
Posts: 303
Threads: 27
Joined: Aug 2013
Reputation:
0
Dude, you are showing OnDialogResponse
I'm asking for the codes above the line which starts like
ShowPlayerDialog(playerid,DIALOG_MEMBERS.....
If you can show that code, perhaps i can help....