Jump to content
  • 0

ajutor


Flyer-Satyr

Question

am erori la un dialog , adk la ondialogresponse X(

C:\Documents and Settings\Kammer\Desktop\InDungi\gamemodes\black.pwn(15349) : error 033: array must be indexed (variable "PlayerInfo")
C:\Documents and Settings\Kammer\Desktop\InDungi\gamemodes\black.pwn(15367) : error 033: array must be indexed (variable "PlayerInfo")
C:\Documents and Settings\Kammer\Desktop\InDungi\gamemodes\black.pwn(15385) : error 033: array must be indexed (variable "PlayerInfo")
C:\Documents and Settings\Kammer\Desktop\InDungi\gamemodes\black.pwn(15403) : error 033: array must be indexed (variable "PlayerInfo")
C:\Documents and Settings\Kammer\Desktop\InDungi\gamemodes\black.pwn(15421) : error 033: array must be indexed (variable "PlayerInfo")
C:\Documents and Settings\Kammer\Desktop\InDungi\gamemodes\black.pwn(15439) : error 033: array must be indexed (variable "PlayerInfo")
C:\Documents and Settings\Kammer\Desktop\InDungi\gamemodes\black.pwn(15457) : error 033: array must be indexed (variable "PlayerInfo")
C:\Documents and Settings\Kammer\Desktop\InDungi\gamemodes\black.pwn(15475) : error 033: array must be indexed (variable "PlayerInfo")
C:\Documents and Settings\Kammer\Desktop\InDungi\gamemodes\black.pwn(15493) : error 033: array must be indexed (variable "PlayerInfo")
C:\Documents and Settings\Kammer\Desktop\InDungi\gamemodes\black.pwn(15512) : error 033: array must be indexed (variable "PlayerInfo")
C:\Documents and Settings\Kammer\Desktop\InDungi\gamemodes\black.pwn(15531) : error 033: array must be indexed (variable "PlayerInfo")
C:\Documents and Settings\Kammer\Desktop\InDungi\gamemodes\black.pwn(15549) : error 033: array must be indexed (variable "PlayerInfo")
C:\Documents and Settings\Kammer\Desktop\InDungi\gamemodes\black.pwn(15567) : error 033: array must be indexed (variable "PlayerInfo")
C:\Documents and Settings\Kammer\Desktop\InDungi\gamemodes\black.pwn(15585) : error 033: array must be indexed (variable "PlayerInfo")
C:\Documents and Settings\Kammer\Desktop\InDungi\gamemodes\black.pwn(15603) : error 033: array must be indexed (variable "PlayerInfo")
liniile
if(dialogid == MEM) // by eu
	{
		if(response)
		{
			if(listitem == 0)// (lspd)
			{//
				SendClientMessage(playerid, COLOR_GREEN,"{FF0000}Police Departament {FFFFFF}Online Members:");
				for(new iiii=0; iiii < MAX_PLAYERS; iiii++)
				{
					if(IsPlayerConnected(iiii))
					{
						if(PlayerInfo[pMember] == 1||PlayerInfo[pLeader] == 1)
						{
							new giveplayer[ MAX_PLAYER_NAME ];
							GetPlayerName(iiii, giveplayer, sizeof(giveplayer));
							format(string, sizeof(string), "*Name: %s | Rank %d | PH: %d", giveplayer,PlayerInfo[pRank],PlayerInfo[pPnumber]);
							SendClientMessage(playerid, COLOR_GREY, string);
							return 1;
						}
					}
				}
			}
			if(listitem == 1)// (fbi)
			{//
				SendClientMessage(playerid, COLOR_GREEN,"{FF0000}Federal Bureau of Investigation {FFFFFF}Online Members:");
				for(new iii=0; iii < MAX_PLAYERS; iii++)
				{
					if(IsPlayerConnected(iii))
					{
						if(PlayerInfo[pMember] == 2||PlayerInfo[pLeader] == 2)
						{
							new giveplayer[ MAX_PLAYER_NAME ];
							GetPlayerName(iii, giveplayer, sizeof(giveplayer));
							format(string, sizeof(string), "*Name: %s | Rank %d | PH: %d", giveplayer,PlayerInfo[pRank],PlayerInfo[pPnumber]);
							SendClientMessage(playerid, COLOR_GREY, string);
							return 1;
						}
					}
				}
			}
			if(listitem == 2)// (cia)
				{//
					SendClientMessage(playerid, COLOR_GREEN,"{FF0000}Central Intelligence Agency {FFFFFF}Online Members:");
					for(new iii=0; iii < MAX_PLAYERS; iii++)
					{
						if(IsPlayerConnected(iii))
						{
							if(PlayerInfo[pMember] == 14||PlayerInfo[pLeader] == 14)
							{
								new giveplayer[ MAX_PLAYER_NAME ];
								GetPlayerName(iii, giveplayer, sizeof(giveplayer));
								format(string, sizeof(string), "*Name: %s | Rank %d | PH: %d", giveplayer,PlayerInfo[pRank],PlayerInfo[pPnumber]);
								SendClientMessage(playerid, COLOR_GREY, string);
								return 1;
							}
						}
					}
				}
			if(listitem == 3)// (LSC)
			{//
					SendClientMessage(playerid, COLOR_GREEN,"{FF0000}Los Santos Council {FFFFFF}Online Members:");
					for(new iii=0; iii < MAX_PLAYERS; iii++)
					{
						if(IsPlayerConnected(iii))
						{
							if(PlayerInfo[pMember] == 3||PlayerInfo[pLeader] == 3)
							{
								new giveplayer[ MAX_PLAYER_NAME ];
								GetPlayerName(iii, giveplayer, sizeof(giveplayer));
								format(string, sizeof(string), "*Name: %s | Rank %d | PH: %d", giveplayer,PlayerInfo[pRank],PlayerInfo[pPnumber]);
								SendClientMessage(playerid, COLOR_GREY, string);
								return 1;
							}
						}
					}
				}
			if(listitem == 4)// (san news)
			{//
					SendClientMessage(playerid, COLOR_GREEN,"{FF0000}San News Reporters {FFFFFF}Online Members:");
					for(new iii=0; iii < MAX_PLAYERS; iii++)
					{
						if(IsPlayerConnected(iii))
						{
							if(PlayerInfo[pMember] == 9||PlayerInfo[pLeader] == 9)
							{
								new giveplayer[ MAX_PLAYER_NAME ];
								GetPlayerName(iii, giveplayer, sizeof(giveplayer));
								format(string, sizeof(string), "*Name: %s | Rank %d | PH: %d", giveplayer,PlayerInfo[pRank],PlayerInfo[pPnumber]);
								SendClientMessage(playerid, COLOR_GREY, string);
								return 1;
							}
						}
					}
				}
			if(listitem == 5)// (LSM)
			{//
					SendClientMessage(playerid, COLOR_GREEN,"{FF0000}Los Santos Monastery {FFFFFF}Online Members:");
					for(new iii=0; iii < MAX_PLAYERS; iii++)
					{
						if(IsPlayerConnected(iii))
						{
							if(PlayerInfo[pMember] == 10||PlayerInfo[pLeader] == 10)
							{
								new giveplayer[ MAX_PLAYER_NAME ];
								GetPlayerName(iii, giveplayer, sizeof(giveplayer));
								format(string, sizeof(string), "*Name: %s | Rank %d | PH: %d", giveplayer,PlayerInfo[pRank],PlayerInfo[pPnumber]);
								SendClientMessage(playerid, COLOR_GREY, string);
								return 1;
							}
						}
					}
				}
			if(listitem == 6)// corleone
			{//
					SendClientMessage(playerid, COLOR_GREEN,"{FF0000}Corleone Famiglia {FFFFFF}Online Members:");
					for(new iii=0; iii < MAX_PLAYERS; iii++)
					{
						if(IsPlayerConnected(iii))
						{
							if(PlayerInfo[pMember] == 5||PlayerInfo[pLeader] == 5)
							{
								new giveplayer[ MAX_PLAYER_NAME ];
								GetPlayerName(iii, giveplayer, sizeof(giveplayer));
								format(string, sizeof(string), "*Name: %s | Rank %d | PH: %d", giveplayer,PlayerInfo[pRank],PlayerInfo[pPnumber]);
								SendClientMessage(playerid, COLOR_GREY, string);
								return 1;
							}
						}
					}
				}
			if(listitem == 7)//yakuza
			{//
					SendClientMessage(playerid, COLOR_GREEN,"{FF0000}The Yakuza Japanesse Mafia {FFFFFF}Online Members:");
					for(new iii=0; iii < MAX_PLAYERS; iii++)
					{
						if(IsPlayerConnected(iii))
						{
							if(PlayerInfo[pMember] == 6||PlayerInfo[pLeader] == 6)
							{
								new giveplayer[ MAX_PLAYER_NAME ];
								GetPlayerName(iii, giveplayer, sizeof(giveplayer));
								format(string, sizeof(string), "*Name: %s | Rank %d | PH: %d", giveplayer,PlayerInfo[pRank],PlayerInfo[pPnumber]);
								SendClientMessage(playerid, COLOR_GREY, string);
								return 1;
							}
						}
					}
				}
			if(listitem == 8)// russkayan
			{//
					SendClientMessage(playerid, COLOR_GREEN,"{FF0000}The Russkayan Bratva {FFFFFF}Online Members:");
					for(new iii=0; iii < MAX_PLAYERS; iii++)
					{
						if(IsPlayerConnected(iii))
						{
							if(PlayerInfo[pMember] == 11||PlayerInfo[pLeader] == 11)
							{
								new giveplayer[ MAX_PLAYER_NAME ];
								GetPlayerName(iii, giveplayer, sizeof(giveplayer));
								format(string, sizeof(string), "*Name: %s | Rank %d | PH: %d", giveplayer,PlayerInfo[pRank],PlayerInfo[pPnumber]);
								SendClientMessage(playerid, COLOR_GREY, string);
								return 1;
							}
						}
					}
				}

				if(listitem == 9)// russkayan
			{//
					SendClientMessage(playerid, COLOR_GREEN,"{FF0000}The Russkayan Bratva {FFFFFF}Online Members:");
					for(new iii=0; iii < MAX_PLAYERS; iii++)
					{
						if(IsPlayerConnected(iii))
						{
							if(PlayerInfo[pMember] == 11||PlayerInfo[pLeader] == 11)
							{
								new giveplayer[ MAX_PLAYER_NAME ];
								GetPlayerName(iii, giveplayer, sizeof(giveplayer));
								format(string, sizeof(string), "*Name: %s | Rank %d | PH: %d", giveplayer,PlayerInfo[pRank],PlayerInfo[pPnumber]);
								SendClientMessage(playerid, COLOR_GREY, string);
								return 1;
							}
						}
					}
				 }

                 if(listitem == 10)// grove
			     {//
					SendClientMessage(playerid, COLOR_GREEN,"{FF0000}The Grove Street Family {FFFFFF}Online Members:");
					for(new iii=0; iii < MAX_PLAYERS; iii++)
					{
						if(IsPlayerConnected(iii))
						{
							if(PlayerInfo[pMember] == 4||PlayerInfo[pLeader] == 4)
							{
								new giveplayer[ MAX_PLAYER_NAME ];
								GetPlayerName(iii, giveplayer, sizeof(giveplayer));
								format(string, sizeof(string), "*Name: %s | Rank %d | PH: %d", giveplayer,PlayerInfo[pRank],PlayerInfo[pPnumber]);
								SendClientMessage(playerid, COLOR_GREY, string);
								return 1;
							}
						}
					}
				}
               if(listitem == 11)// ballas
			     {//
					SendClientMessage(playerid, COLOR_GREEN,"{FF0000}Rollin' High Ballas Gang {FFFFFF}Online Members:");
					for(new iii=0; iii < MAX_PLAYERS; iii++)
					{
						if(IsPlayerConnected(iii))
						{
							if(PlayerInfo[pMember] == 7||PlayerInfo[pLeader] == 7)
							{
								new giveplayer[ MAX_PLAYER_NAME ];
								GetPlayerName(iii, giveplayer, sizeof(giveplayer));
								format(string, sizeof(string), "*Name: %s | Rank %d | PH: %d", giveplayer,PlayerInfo[pRank],PlayerInfo[pPnumber]);
								SendClientMessage(playerid, COLOR_GREY, string);
								return 1;
							}
						}
					}
				}
				if(listitem == 12)// ssw
			     {//
					SendClientMessage(playerid, COLOR_GREEN,"{FF0000}South Side Winos Family {FFFFFF}Online Members:");
					for(new iii=0; iii < MAX_PLAYERS; iii++)
					{
						if(IsPlayerConnected(iii))
						{
							if(PlayerInfo[pMember] == 12||PlayerInfo[pLeader] == 12)
							{
								new giveplayer[ MAX_PLAYER_NAME ];
								GetPlayerName(iii, giveplayer, sizeof(giveplayer));
								format(string, sizeof(string), "*Name: %s | Rank %d | PH: %d", giveplayer,PlayerInfo[pRank],PlayerInfo[pPnumber]);
								SendClientMessage(playerid, COLOR_GREY, string);
								return 1;
							}
						}
					}
				}
				if(listitem == 13)// cobras
			     {//
					SendClientMessage(playerid, COLOR_GREEN,"{FF0000}The Cobras Motor Club {FFFFFF}Online Members:");
					for(new iii=0; iii < MAX_PLAYERS; iii++)
					{
						if(IsPlayerConnected(iii))
						{
							if(PlayerInfo[pMember] == 8||PlayerInfo[pLeader] == 8)
							{
								new giveplayer[ MAX_PLAYER_NAME ];
								GetPlayerName(iii, giveplayer, sizeof(giveplayer));
								format(string, sizeof(string), "*Name: %s | Rank %d | PH: %d", giveplayer,PlayerInfo[pRank],PlayerInfo[pPnumber]);
								SendClientMessage(playerid, COLOR_GREY, string);
								return 1;
							}
						}
					}
				}
				if(listitem == 14)// infamous
			     {//
					SendClientMessage(playerid, COLOR_GREEN,"{FF0000}The Infamous Racers Club {FFFFFF}Online Members:");
					for(new iii=0; iii < MAX_PLAYERS; iii++)
					{
						if(IsPlayerConnected(iii))
						{
							if(PlayerInfo[pMember] == 13||PlayerInfo[pLeader] == 13)
							{
								new giveplayer[ MAX_PLAYER_NAME ];
								GetPlayerName(iii, giveplayer, sizeof(giveplayer));
								format(string, sizeof(string), "*Name: %s | Rank %d | PH: %d", giveplayer,PlayerInfo[pRank],PlayerInfo[pPnumber]);
								SendClientMessage(playerid, COLOR_GREY, string);
								return 1;
							}
						}
					}
				}

		}
		return 1;
	}

ma poate ajuta cineva ? adik numi dau seama , de ce eroare la "playerinfo" :-??

metallica-logo.jpg
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

hmm...pai merge mai greu adik noh:))...

tre sa pui la fiecare asa:

new PlayerInfo[pPnumber];
new PlayerInfo[pRank];
etc...si ce mai ai tu acolo... dar mai bn ai face asa...
enum pInfo
{
pPnumber,
pRank
};
si dupa aceea doar pui:
new PlayerInfo[MAX_PLAYERS][pInfo];
si vei pune asa dupa aceea in loc de PlayerInfo[pRank]; vei pune asa:
PlayerInfo[playerid][pRank];

Fara reclama in semnatura!

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.