Доступ к архиву

Переход в группу "Пользователь"

300.00 ₽
Одноразовый платёж
Быстрый переход в группу "Пользователи", без надобности написания постов и ожидания.

Покупка дает возможность:
Быть полноправным участником форума
Нормальное копирование кода
Создавать темы
Скачивать файлы
Доступ к архиву Pawno-Info

HELP ME!index

Статус
В этой теме нельзя размещать новые ответы.

Kuntik

Ученик
Помогите у меня проблема недавно ставил команду /leaders вылетает ошибка ​
PHP:
C:\Users\KuntikTV\Desktop\Falcon-Rp\gamemodes\falcon.pwn(19971) : error 032: array index out of bounds (variable "pLeaders")
C:\Users\KuntikTV\Desktop\Falcon-Rp\gamemodes\falcon.pwn(19972) : warning 219: local variable "text" shadows a variable at a preceding level
C:\Users\KuntikTV\Desktop\Falcon-Rp\gamemodes\falcon.pwn(19992) : error 032: array index out of bounds (variable "text")
C:\Users\KuntikTV\Desktop\Falcon-Rp\gamemodes\falcon.pwn(19992) : error 032: array index out of bounds (variable "text")
C:\Users\KuntikTV\Desktop\Falcon-Rp\gamemodes\falcon.pwn(19993) : error 032: array index out of bounds (variable "text")
C:\Users\KuntikTV\Desktop\Falcon-Rp\gamemodes\falcon.pwn(19993) : error 032: array index out of bounds (variable "text")
C:\Users\KuntikTV\Desktop\Falcon-Rp\gamemodes\falcon.pwn(19994) : error 032: array index out of bounds (variable "text")
C:\Users\KuntikTV\Desktop\Falcon-Rp\gamemodes\falcon.pwn(19994) : error 032: array index out of bounds (variable "text")
C:\Users\KuntikTV\Desktop\Falcon-Rp\gamemodes\falcon.pwn(19995) : error 032: array index out of bounds (variable "pLeaders")
C:\Users\KuntikTV\Desktop\Falcon-Rp\gamemodes\falcon.pwn(19995) : error 032: array index out of bounds (variable "text")
C:\Users\KuntikTV\Desktop\Falcon-Rp\gamemodes\falcon.pwn(19995) : error 032: array index out of bounds (variable "text")
C:\Users\KuntikTV\Desktop\Falcon-Rp\gamemodes\falcon.pwn(19995) : fatal error 107: too many error messages on one line
как исправить?
Вот команда
PHP:
	if(strcmp(cmd, "/leaders", true) == 0)
	{
	    new str[128],sctring[2500];
	    new file = ini_openFile("/leaders.ini");
	    ini_getString(file,"LSPD",pLeaders[1]);
	    ini_getString(file,"FBI",pLeaders[2]);
	    ini_getString(file," ",pLeaders[3]);
	    ini_getString(file,"",pLeaders[4]);
	    ini_getString(file,"LCN",pLeaders[5]);
	    ini_getString(file,"YAKUZA",pLeaders[6]);
	    ini_getString(file,"MARYA",pLeaders[7]);
	    ini_getString(file,"SFPD",pLeaders[8]);
	    ini_getString(file,"LICENSERS",pLeaders[10]);
	    ini_getString(file,"The Ballas",pLeaders[11]);
	    ini_getString(file,"The Vagos",pLeaders[12]);
	    ini_getString(file," ",pLeaders[13]);
	    ini_getString(file,"The Grove",pLeaders[14]);
	    ini_getString(file,"San News",pLeaders[15]);
	    ini_getString(file,"The Aztecas",pLeaders[16]);
	    ini_getString(file,"The Rifa",pLeaders[17]);
	    ini_getString(file,"The Rifa",pLeaders[18]);
	    ini_getString(file,":  51",pLeaders[19]);
	    ini_getString(file,"LVPD",pLeaders[21]);
	    ini_getString(file,"",pLeaders[23]);
	    ini_getString(file,"Street Rasers",pLeaders[24]);
	    ini_getString(file,"SWAT",pLeaders[25]);
	    ini_getString(file,"",pLeaders[26]);
	    new text[23][32];
	    if(IsPlayerConnected(GetPlayerID(pLeaders[1]))) { text[1] = "[{22ff00}Online{F2EEF0}]"; } else { text[1] = "[{ff001c}Offline{F2EEF0}]"; }
	    if(IsPlayerConnected(GetPlayerID(pLeaders[2]))) { text[2] = "[{22ff00}Online{F2EEF0}]"; } else { text[2] = "[{ff001c}Offline{F2EEF0}]"; }
	    if(IsPlayerConnected(GetPlayerID(pLeaders[3]))) { text[3] = "[{22ff00}Online{F2EEF0}]"; } else { text[3] = "[{ff001c}Offline{F2EEF0}]"; }
	    if(IsPlayerConnected(GetPlayerID(pLeaders[4]))) { text[4] = "[{22ff00}Online{F2EEF0}]"; } else { text[4] = "[{ff001c}Offline{F2EEF0}]"; }
	    if(IsPlayerConnected(GetPlayerID(pLeaders[5]))) { text[5] = "[{22ff00}Online{F2EEF0}]"; } else { text[5] = "[{ff001c}Offline{F2EEF0}]"; }
	    if(IsPlayerConnected(GetPlayerID(pLeaders[6]))) { text[6] = "[{22ff00}Online{F2EEF0}]"; } else { text[6] = "[{ff001c}Offline{F2EEF0}]"; }
	    if(IsPlayerConnected(GetPlayerID(pLeaders[7]))) { text[7] = "[{22ff00}Online{F2EEF0}]"; } else { text[7] = "[{ff001c}Offline{F2EEF0}]"; }
	    if(IsPlayerConnected(GetPlayerID(pLeaders[8]))) { text[8] = "[{22ff00}Online{F2EEF0}]"; } else { text[8] = "[{ff001c}Offline{F2EEF0}]"; }
	    if(IsPlayerConnected(GetPlayerID(pLeaders[10]))) { text[10] = "[{22ff00}Online{F2EEF0}]"; } else { text[10] = "[{ff001c}Offline{F2EEF0}]"; }
	    if(IsPlayerConnected(GetPlayerID(pLeaders[11]))) { text[11] = "[{22ff00}Online{F2EEF0}]"; } else { text[11] = "[{ff001c}Offline{F2EEF0}]"; }
	    if(IsPlayerConnected(GetPlayerID(pLeaders[12]))) { text[12] = "[{22ff00}Online{F2EEF0}]"; } else { text[12] = "[{ff001c}Offline{F2EEF0}]"; }
	    if(IsPlayerConnected(GetPlayerID(pLeaders[13]))) { text[13] = "[{22ff00}Online{F2EEF0}]"; } else { text[13] = "[{ff001c}Offline{F2EEF0}]"; }
	    if(IsPlayerConnected(GetPlayerID(pLeaders[14]))) { text[14] = "[{22ff00}Online{F2EEF0}]"; } else { text[14] = "[{ff001c}Offline{F2EEF0}]"; }
	    if(IsPlayerConnected(GetPlayerID(pLeaders[15]))) { text[15] = "[{22ff00}Online{F2EEF0}]"; } else { text[15] = "[{ff001c}Offline{F2EEF0}]"; }
	    if(IsPlayerConnected(GetPlayerID(pLeaders[16]))) { text[16] = "[{22ff00}Online{F2EEF0}]"; } else { text[16] = "[{ff001c}Offline{F2EEF0}]"; }
	    if(IsPlayerConnected(GetPlayerID(pLeaders[17]))) { text[17] = "[{22ff00}Online{F2EEF0}]"; } else { text[17] = "[{ff001c}Offline{F2EEF0}]"; }
	    if(IsPlayerConnected(GetPlayerID(pLeaders[18]))) { text[18] = "[{22ff00}Online{F2EEF0}]"; } else { text[18] = "[{ff001c}Offline{F2EEF0}]"; }
	    if(IsPlayerConnected(GetPlayerID(pLeaders[19]))) { text[19] = "[{22ff00}Online{F2EEF0}]"; } else { text[19] = "[{ff001c}Offline{F2EEF0}]"; }
	    if(IsPlayerConnected(GetPlayerID(pLeaders[21]))) { text[21] = "[{22ff00}Online{F2EEF0}]"; } else { text[21] = "[{ff001c}Offline{F2EEF0}]"; }
	    if(IsPlayerConnected(GetPlayerID(pLeaders[23]))) { text[23] = "[{22ff00}Online{F2EEF0}]"; } else { text[23] = "[{ff001c}Offline{F2EEF0}]"; }
	    if(IsPlayerConnected(GetPlayerID(pLeaders[24]))) { text[24] = "[{22ff00}Online{F2EEF0}]"; } else { text[24] = "[{ff001c}Offline{F2EEF0}]"; }
	    if(IsPlayerConnected(GetPlayerID(pLeaders[25]))) { text[25] = "[{22ff00}Online{F2EEF0}]"; } else { text[25] = "[{ff001c}Offline{F2EEF0}]"; }
	    if(IsPlayerConnected(GetPlayerID(pLeaders[26]))) { text[26] = "[{22ff00}Online{F2EEF0}]"; } else { text[26] = "[{ff001c}Offline{F2EEF0}]"; }
	    format(str,sizeof(str),"{9ACD32}______________ .  ______________\n");
	    strcat(sctring,str);
	    format(str,sizeof(str),"{2641FE}L.S.P.D:  --  {01FCFF}%s %s\n",pLeaders[1],text[1]);
	    strcat(sctring,str);
	    format(str,sizeof(str),"{191970}S.F.P.D:  --  {01FCFF}%s %s\n",pLeaders[10],text[10]);
	    strcat(sctring,str);
	    format(str,sizeof(str),"{191970}L.V.P.D:  --  {01FCFF}%s %s\n",pLeaders[21],text[21]);
	    strcat(sctring,str);
	    format(str,sizeof(str),"{191970}F.B.I:  --  {01FCFF}%s %s\n",pLeaders[2],text[2]);
	    strcat(sctring,str);
	    format(str,sizeof(str),"{A52A2A}:  - -  {01FCFF}%s %s\n",pLeaders[4],text[4]);
	    strcat(sctring,str);
	    format(str,sizeof(str),"{114D71}:   --  {01FCFF}%s %s\n",pLeaders[7],text[7]);
	    strcat(sctring,str);
	    format(str,sizeof(str),"{33AA33}:  51:  --  {01FCFF}%s %s\n",pLeaders[19],text[19]);
	    strcat(sctring,str);
	    format(str,sizeof(str),"{009F00}: :  --  {01FCFF}%s %s\n",pLeaders[3],text[3]);
	    strcat(sctring,str);
	    format(str,sizeof(str),"{191970}:  --  {01FCFF}%s %s\n",pLeaders[26],text[26]);
	    strcat(sctring,str);
	    format(str,sizeof(str),"{9ACD32}___________________  ___________________\n");
	    strcat(sctring,str);
	    format(str,sizeof(str),"{000000} :  -  -  {01FCFF}%s %s\n",pLeaders[14],text[14]);
	    strcat(sctring,str);
	    format(str,sizeof(str),"{313131}La Cosa Nostra:  --  {01FCFF}%s %s\n",pLeaders[5],text[5]);
	    strcat(sctring,str);
	    format(str,sizeof(str),"{FFFF00}:  --  {01FCFF}%s %s\n",pLeaders[6],text[6]);
	    strcat(sctring,str);
	    format(str,sizeof(str),"{9ACD32}___________________  ___________________\n");
	    strcat(sctring,str);
	    format(str,sizeof(str),"{01FCFF}The Aztecas:  --  {01FCFF}%s %s\n",pLeaders[17],text[17]);
	    strcat(sctring,str);
	    format(str,sizeof(str),"{009F00}The Grove Street:  - -  {01FCFF}%s %s\n",pLeaders[15],text[15]);
	    strcat(sctring,str);
	    format(str,sizeof(str),"{83BFBF}The Rifa Gang:  --  {01FCFF}%s %s\n",pLeaders[18],text[18]);
	    strcat(sctring,str);
	    format(str,sizeof(str),"{8813E7}The Ballas Gang:  - -  {01FCFF}%s %s\n",pLeaders[12],text[12]);
	    strcat(sctring,str);
	    format(str,sizeof(str),"{DBD604}The Vagos Gang:  --  {01FCFF}%s %s\n\n",pLeaders[13],text[13]);
	    strcat(sctring,str);
	    format(str,sizeof(str),"{9ACD32}________________  ________________\n");
	    strcat(sctring,str);
	    format(str,sizeof(str),"{139BEC}:  --  {01FCFF}%s %s\n",pLeaders[11],text[11]);
	    strcat(sctring,str);
	    format(str,sizeof(str),"{8813E7}CASINO:  --  {01FCFF}%s %s\n\n",pLeaders[8],text[8]);
	    strcat(sctring,str);
	    format(str,sizeof(str),"{40848B}SAN News:  - -  {01FCFF}%s %s\n",pLeaders[16],text[16]);
	    strcat(sctring,str);
	    ShowPlayerDialog(playerid,100500,DIALOG_STYLE_MSGBOX,"  ",sctring,"","");
	    ini_closeFile(file);
	    return true;
	}

С меня +

---------- Post added at 23:54 ---------- Previous post was at 23:47 ----------

И ещё мод на mysql

---------- Post added 31.03.2014 at 00:01 ---------- Previous post was 30.03.2014 at 23:54 ----------

АП АП АП
 
Статус
В этой теме нельзя размещать новые ответы.
Сверху Снизу