#1

Getting some errors on this line
Код:
C:\Users\Kimo CompuTeR\Downloads\New folder\pawno\include\YSI\y_debug.inc(277) : warning 219: local variable "str" shadows a variable at a preceding level
C:\Users\Kimo CompuTeR\Downloads\New folder\pawno\include\YSI\y_debug.inc(339) : warning 219: local variable "str" shadows a variable at a preceding level
C:\Users\Kimo CompuTeR\Downloads\New folder\pawno\include\YSI\y_debug.inc(344) : warning 219: local variable "str" shadows a variable at a preceding level
C:\Users\Kimo CompuTeR\Downloads\New folder\pawno\include\YSI\y_amx.inc(454) : warning 219: local variable "str" shadows a variable at a preceding level
C:\Users\Kimo CompuTeR\Downloads\New folder\pawno\include\YSI\y_amx.inc(904) : warning 219: local variable "str" shadows a variable at a preceding level
C:\Users\Kimo CompuTeR\Downloads\New folder\pawno\include\YSI\y_amx.inc(926) : warning 219: local variable "str" shadows a variable at a preceding level
C:\Users\Kimo CompuTeR\Downloads\New folder\pawno\include\YSI\y_utils.inc(246) : warning 219: local variable "str" shadows a variable at a preceding level
C:\Users\Kimo CompuTeR\Downloads\New folder\pawno\include\YSI\y_utils.inc(266) : warning 219: local variable "line" shadows a variable at a preceding level
C:\Users\Kimo CompuTeR\Downloads\New folder\pawno\include\YSI\y_utils.inc(369) : warning 219: local variable "str" shadows a variable at a preceding level
C:\Users\Kimo CompuTeR\Downloads\New folder\pawno\include\YSI\y_utils.inc(396) : warning 219: local variable "str" shadows a variable at a preceding level
C:\Users\Kimo CompuTeR\Downloads\New folder\pawno\include\YSI\y_utils.inc(475) : warning 219: local variable "str" shadows a variable at a preceding level
C:\Users\Kimo CompuTeR\Downloads\New folder\pawno\include\YSI\y_malloc.inc(488) : warning 219: local variable "str" shadows a variable at a preceding level
C:\Users\Kimo CompuTeR\Downloads\New folder\pawno\include\YSI\y_malloc.inc(613) : warning 219: local variable "str" shadows a variable at a preceding level
C:\Users\Kimo CompuTeR\Downloads\New folder\pawno\include\YSI\y_malloc.inc(899) : warning 219: local variable "tmp" shadows a variable at a preceding level
C:\Users\Kimo CompuTeR\Downloads\New folder\pawno\include\YSI\y_malloc.inc(929) : warning 219: local variable "tmp" shadows a variable at a preceding level
C:\Users\Kimo CompuTeR\Downloads\New folder\pawno\include\YSI\y_inline.inc(265) : warning 219: local variable "tmp" shadows a variable at a preceding level
C:\Users\Kimo CompuTeR\Downloads\New folder\pawno\include\YSI\y_inline.inc(312) : warning 219: local variable "tmp" shadows a variable at a preceding level
C:\Users\Kimo CompuTeR\Downloads\New folder\pawno\include\YSI\y_inline.inc(511) : warning 219: local variable "ignore" shadows a variable at a preceding level
C:\Users\Kimo CompuTeR\Downloads\New folder\pawno\include\YSI\y_inline.inc(606) : warning 219: local variable "p3" shadows a variable at a preceding level
C:\Users\Kimo CompuTeR\Downloads\New folder\pawno\include\YSI\y_inline.inc(1000) : warning 219: local variable "tmp" shadows a variable at a preceding level
C:\Users\Kimo CompuTeR\Downloads\New folder\pawno\include\YSI\y_inline.inc(1210) : warning 219: local variable "tmp" shadows a variable at a preceding level
C:\Users\Kimo CompuTeR\Downloads\New folder\pawno\include\YSI\y_ini.inc(469) : warning 219: local variable "line" shadows a variable at a preceding level
C:\Users\Kimo CompuTeR\Downloads\New folder\pawno\include\YSI\y_ini.inc(1192) : warning 219: local variable "str" shadows a variable at a preceding level
C:\Users\Kimo CompuTeR\Downloads\New folder\pawno\include\YSI\y_ini.inc(1232) : warning 219: local variable "line" shadows a variable at a preceding level
OSF_config.pwn(1718) : warning 216: nested comment
OSF_houses.pwn(13) : error 021: symbol already defined: "FALSE"
C:\Users\Kimo CompuTeR\Downloads\New folder\gamemodes\OSF.pwn(4478) : error 017: undefined symbol "sstr"
C:\Users\Kimo CompuTeR\Downloads\New folder\gamemodes\OSF.pwn(4506) : error 017: undefined symbol "stt"
C:\Users\Kimo CompuTeR\Downloads\New folder\gamemodes\OSF.pwn(4653) : error 025: function heading differs from prototype
C:\Users\Kimo CompuTeR\Downloads\New folder\gamemodes\OSF.pwn(4890) : error 025: function heading differs from prototype
C:\Users\Kimo CompuTeR\Downloads\New folder\gamemodes\OSF.pwn(25418) : warning 217: loose indentation
C:\Users\Kimo CompuTeR\Downloads\New folder\gamemodes\OSF.pwn(31128) : warning 217: loose indentation
C:\Users\Kimo CompuTeR\Downloads\New folder\gamemodes\OSF.pwn(31897) : error 010: invalid function or declaration
C:\Users\Kimo CompuTeR\Downloads\New folder\gamemodes\OSF.pwn(31898) : error 010: invalid function or declaration
C:\Users\Kimo CompuTeR\Downloads\New folder\gamemodes\OSF.pwn(31917) : error 017: undefined symbol "str1"
C:\Users\Kimo CompuTeR\Downloads\New folder\gamemodes\OSF.pwn(31917) : error 017: undefined symbol "str1"
C:\Users\Kimo CompuTeR\Downloads\New folder\gamemodes\OSF.pwn(31917) : error 029: invalid expression, assumed zero
C:\Users\Kimo CompuTeR\Downloads\New folder\gamemodes\OSF.pwn(31917) : fatal error 107: too many error messages on one line
Код:
	if(isCbug[playerid] == 1)
	{
		if(GetPlayerWeapon(playerid) == 24)
		{
		    if(GetPlayerAmmo(playerid) == 7 && PRESSED(KEY_FIRE))
			{
			    ccount[0][playerid] = GetTickCount();
                disparou[playerid] = true;
			}
			else if(RELEASED(KEY_FIRE))
			{
			    if(GetPlayerAmmo(playerid) == 0)
			    {
					ccount[1][playerid] = GetTickCount();
					ccount[2][playerid] = ccount[1][playerid] - ccount[0][playerid];
					ccount[3][playerid] = ccount[2][playerid] / 1000;
					disparou[playerid] = false;
					format(str, sizeof(str), "~r~C-Bug Time~w~:~n~%0.4f~y~s", ccount[3][playerid]);
					GameTextForPlayer(playerid, sstr, 2000, 4);
					format(str, sizeof(str), "{FF0000}C-Bug Time{FFFFFF}: %0.4f{FFFF00}s", ccount[3][playerid]);
					Msg(playerid, -1, str);

					// Y_INI
                    INI_ParseFile(fileToWrite,"ini_%s_%s");
					if (ccount[3][playerid] < tops[4])
					{
					    new INI:iniFile = INI_Open(fileToWrite);
                        new nick[MAX_PLAYER_NAME+1];
                        format(nick, sizeof(nick), GetPlayerN(playerid));

                        if (ccount[3][playerid] < tops[0])
                        {
                            INI_SetTag(iniFile, "tempos");
							INI_WriteFloat(iniFile, "1", ccount[3][playerid], 4);
							INI_WriteFloat(iniFile, "2", tops[0], 4);
							INI_WriteFloat(iniFile, "3", tops[1], 4);
							INI_WriteFloat(iniFile, "4", tops[2], 4);
							INI_WriteFloat(iniFile, "5", tops[3], 4);
                            INI_SetTag(iniFile, "jogadores");
							INI_WriteString(iniFile, "j1", nick);
							INI_WriteString(iniFile, "j2", jogtops[0]);
							INI_WriteString(iniFile, "j3", jogtops[1]);
							INI_WriteString(iniFile, "j4", jogtops[2]);
							INI_WriteString(iniFile, "j5", jogtops[3]);

                            format(str, sizeof(str), "[CBug-Time] {00FF00}%s{FFFFFF} is now in {00FF00}1st place{FFFFFF} with a time of {00FF00}%0.4f{FFFFFF} seconds!", nick, ccount[3][playerid]);
			    			MsgAll(0xFF0000FF, stt);
			    			INI_Close(iniFile);
						}
          				else if (ccount[3][playerid] < tops[1])
                        {
                            INI_SetTag(iniFile, "tempos");
							INI_WriteFloat(iniFile, "2", ccount[3][playerid], 4);
							INI_WriteFloat(iniFile, "3", tops[1], 4);
							INI_WriteFloat(iniFile, "4", tops[2], 4);
							INI_WriteFloat(iniFile, "5", tops[3], 4);
	                        INI_SetTag(iniFile, "jogadores");
							INI_WriteString(iniFile, "j2", nick);
							INI_WriteString(iniFile, "j3", jogtops[1]);
							INI_WriteString(iniFile, "j4", jogtops[2]);
							INI_WriteString(iniFile, "j5", jogtops[3]);

							format(str, sizeof(str), "[CBug-Time] {00FF00}%s{FFFFFF} is now in {00FF00}2nd place{FFFFFF} with a time of {00FF00}%0.4f{FFFFFF} seconds!", nick, ccount[3][playerid]);
				    		MsgAll(0xFF0000FF, str);
				    		INI_Close(iniFile);
						}
      					else if (ccount[3][playerid] < tops[2])
                        {
                        	INI_SetTag(iniFile, "tempos");
							INI_WriteFloat(iniFile, "3", ccount[3][playerid], 4);
							INI_WriteFloat(iniFile, "4", tops[2], 4);
							INI_WriteFloat(iniFile, "5", tops[3], 4);
                            INI_SetTag(iniFile, "jogadores");
							INI_WriteString(iniFile, "j3", nick);
							INI_WriteString(iniFile, "j4", jogtops[2]);
							INI_WriteString(iniFile, "j5", jogtops[3]);

							format(str, sizeof(str), "[CBug-Time] {00FF00}%s{FFFFFF} is now in {00FF00}3rd place{FFFFFF} with a time of {00FF00}%0.4f{FFFFFF} seconds!", nick, ccount[3][playerid]);
					    	MsgAll(0xFF0000FF, str);
					    	INI_Close(iniFile);
						}
						else if (ccount[3][playerid] < tops[3])
                        {
                            INI_SetTag(iniFile, "tempos");
							INI_WriteFloat(iniFile, "4", ccount[3][playerid], 4);
							INI_WriteFloat(iniFile, "5", tops[3], 4);
                            INI_SetTag(iniFile, "jogadores");
							INI_WriteString(iniFile, "j4", nick);
							INI_WriteString(iniFile, "j5", jogtops[3]);

							format(str, sizeof(str), "[CBug-Time] {00FF00}%s{FFFFFF} is now in {00FF00}4th place{FFFFFF} with a time of {00FF00}%0.4f{FFFFFF} seconds!", nick, ccount[3][playerid]);
						    MsgAll(0xFF0000FF, str);
						    INI_Close(iniFile);
						}
						else
						{
							INI_SetTag(iniFile, "tempos");
							INI_WriteFloat(iniFile, "5", ccount[3][playerid], 4);
	                        INI_SetTag(iniFile, "jogadores");
							INI_WriteString(iniFile, "j5", nick);

							format(str, sizeof(str), "[CBug-Time] {00FF00}%s{FFFFFF} is now in {00FF00}5th place{FFFFFF} with a time of {00FF00}%0.4f{FFFFFF} seconds!", nick, ccount[3][playerid]);
							MsgAll(0xFF0000FF, str);

							INI_Close(iniFile);
						}
					}

					// Y_INI
					ccount[0][playerid] = 0; ccount[1][playerid] = 0; ccount[2][playerid] = 0; ccount[3][playerid] = 0;
					WaitReset(playerid);
				}
			}

		}
	}
	return true;
}
Reply


Messages In This Thread
help - by Dangjai - 31.03.2017, 23:13
Re: help - by Sew_Sumi - 31.03.2017, 23:30
Re: help - by Dangjai - 31.03.2017, 23:39
Re: help - by Sew_Sumi - 01.04.2017, 04:38
Re: help - by Dangjai - 01.04.2017, 06:18
Re: help - by Flamehaze7 - 01.04.2017, 06:31
Re: help - by Dangjai - 01.04.2017, 06:42
Re: help - by Sew_Sumi - 01.04.2017, 08:00

Forum Jump:


Users browsing this thread: 3 Guest(s)