Symbol already defined
#1

here I don't get any errors:
Код:
		if(!strcmp(cmdtext,"/blabla", true, 8))
		{
			new teststring[11] = "somestring";
			print(teststring);
		  return 1;
		}

		if(!strcmp(cmdtext,"/oblabla", true, 8))
		{
			new teststring[11] = "somestring";
			print(teststring);
		  return 1;
		}
and here I get error 021: symbol already defined: "file"
Код:
		if(!strcmp(cmdtext,"/read", true, 5))
		{
			new file[14] = "ScoreList.ini";
			if(!xini_exist(file))
			{
				xini_create(file);
			}

			new Kills[10][256], KillsName[10][256], KillsValue[10], tmpp[256], vstring[2];
		  for(new v=0; v<10; v++)
		  {
		    valstr(vstring, v);
				Kills[v] = xini_get(file,"Kills",vstring,true); //full string
				KillsName[v] = extract(Kills[v], 0); //name (1st part)
				tmpp = extract(Kills[v], 1); KillsValue[v] = strval(tmpp); //value (2nd part)

				format(String, sizeof String, "%s %i", KillsName[v], KillsValue[v]);
				SendClientMessage(20, COLOR_BASIC, String);
			}
	  	return 1;
		}

		if(!strcmp(cmdtext,"/oread", true, 6))
		{
			new file[14] = "ScoreList.ini";
			if(xini_exist(file))
			{
				new Kills[10][256], KillsName[10][256], KillsValue[10], tmpp[256], vstring[2];
			  for(new v=0; v<10; v++)
			  {
			    valstr(vstring, v);
					Kills[v] = xini_get(file,"Kills",vstring,true); //full string
					KillsName[v] = extract(Kills[v], 0); //name (1st part)
					tmpp = extract(Kills[v], 1); KillsValue[v] = strval(tmpp); //value (2nd part)

					format(String, sizeof String, "%s %i", KillsName[v], KillsValue[v]);
					SendClientMessage(20, COLOR_BASIC, String);
				}
				format(String, sizeof String, "~b~ScoreList Kills:~n~~n~~w~1: %24s %i~n~2: %24s %i~n~3: %24s %i~n~4: %24s %i~n~5: %24s %i~n~6: %24s %i~n~7: %24s %i~n~8: %24s %i~n~9: %24s %i~n~10: %24s %i~n~",
				KillsName[0], KillsValue[0], KillsName[1], KillsValue[1], KillsName[2], KillsValue[2], KillsName[3], KillsValue[3], KillsName[4], KillsValue[4], KillsName[5],
				KillsValue[5], KillsName[6], KillsValue[6], KillsName[7], KillsValue[7], KillsName[8], KillsValue[8], KillsName[9], KillsValue[9]);
	      SendInfoText(playerid, 0, 200, String);
				PlayerPlaySound(playerid, CheckSound, 0.0, 0.0, 0.0);
			}
			else
			{
		    PlayerPlaySound(playerid, ErrorSound, 0.0, 0.0, 0.0);
				SendInfoText(playerid, 1200, 103, "~r~Error_o.O");
			}
	  	return 1;
		}
wtf?
Reply


Messages In This Thread
Symbol already defined - by ғαιιοцт - 15.10.2009, 15:53
Re: Symbol already defined - by dice7 - 15.10.2009, 17:23
Re: Symbol already defined - by yom - 15.10.2009, 17:29
Re: Symbol already defined - by ғαιιοцт - 15.10.2009, 17:38
Re: Symbol already defined - by yom - 15.10.2009, 18:03
Re: Symbol already defined - by ғαιιοцт - 15.10.2009, 18:19
Re: Symbol already defined - by dice7 - 15.10.2009, 18:21

Forum Jump:


Users browsing this thread: 1 Guest(s)