SA-MP Forums Archive
Help me! error & waring - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help me! error & waring (/showthread.php?tid=349530)



Help me! warning - omyim - 09.06.2012

(13500) : warning 204: symbol is assigned a value that is never used: "PlayerTakeStaTimer"
(46297) : warning 204: symbol is assigned a value that is never used: "StationTuff"
(46297 -- 46315) : warning 203: symbol is never used: "scmf"


Код:
if(!strcmp(cmd,"/from",true))
	{
 		if(!IsAGangMember(playerid))
		{
		SendClientMessage(playerid,COLOR_RED,"¤ШідБигЄибЎк§¤ГСє");
		return 1;
		}
		if(!openwar3) return SendClientMessage(playerid,COLOR_RED,"ВС§дБи¶Ц§аЗЕТЗНГм");
		if(deathcpr[playerid] == 1) return SendClientMessage(playerid,COLOR_RED,"гЎЕйµТВбЕйЗЁРВЦґдґйд§");
		if(!IsPlayerInRangeOfPoint(playerid,5.0,-2035.0050,-520.6556,35.3359)) return SendClientMessage(playerid,COLOR_RED,"¤ШідБидґйНВЩиЁШґ·ХиЎУЛ№ґ");
        if(WantedLevel[playerid] != 0) { return SendClientMessage(playerid,COLOR_GREY,"¤ШіµФґґТЗдБиКТБТГ¶ЗНдґй"); }
		if(StationTaking) return SendClientMessage(playerid,COLOR_RED,"БХ¤№ЎУЕС§ВЦґНВЩи");
		if(PlayerTakingStation[playerid]) return SendClientMessage(playerid,COLOR_RED,"¤ШіЎУЕС§ВЦґНВЩи");
		PlayerTakeStaTimer = SetTimerEx("FinishTakeStation",60000,0,"i",playerid);  // This line warning
		SetPlayerCheckpoint(playerid,5.0,-2035.0050,-520.6556,35.3359);
		GetPlayerName(playerid,sendername,24);
		format(string,128,"War: %s дґйаГФиБВЦґКаµбЕйЗ БХаЗЕТ 60 ЗФ№Т·Х Ё§д»ЛВШґВСй§аўТ«Р",sendername);
		SendClientMessageToAll(COLOR_YELLOW,string);
  		GangZoneFlashForAll(StationZone, COLOR_LIGHTRED);
		PlayerTakingStation[playerid] = 1;
		StationTaking = 1;
		return 1;
	}
Код:
public FinishTakeStation(targetid)    // - ЕєўйТ§є№ ѕиНБЦ§µТВ бБиБЦ§ґйН§НХ¤ЗТВЎЩаўХВ№а¤ГґФµБТдЗй аКГЧНЎБТЕє!
{
	if(IsPlayerInRangeOfPoint(targetid,-2030.4464,-523.0266,35.3359,5.0))
	{
	    new string[128];              // - НВиТгЛйГЩй№РНФиґНЎ ЎШдБиаНТГРєєБТЅТЎНХЎЕР
	    new winner;
	    if(deathcpr[targetid] == 1) return SendClientMessage(targetid,COLOR_RED,"¤ШієТґаЁзєНВЩидБиКТБТГ¶ВЦґдґй");
		winner = (PlayerInfo[targetid][pLeader] != 0) ? (PlayerInfo[targetid][pLeader]) : (PlayerInfo[targetid][pMember]);
		StationTuff = winner;  // This line warning
		new ttext[32];
		if(PlayerInfo[targetid][pMember] == 5 || PlayerInfo[targetid][pLeader] == 5) { ttext = "БТаїХВ"; }
		else if(PlayerInfo[targetid][pMember] == 6 || PlayerInfo[targetid][pLeader] == 6) { ttext = "ВТЎШ«иТ"; }
		else if(PlayerInfo[targetid][pMember] == 12 || PlayerInfo[targetid][pLeader] == 12) { ttext = "бЎк§¤маўХВЗ"; }
		else if(PlayerInfo[targetid][pMember] == 13 || PlayerInfo[targetid][pLeader] == 13) { ttext = "бЎк§¤мБиЗ§"; }
		else if(PlayerInfo[targetid][pMember] == 14 || PlayerInfo[targetid][pLeader] == 14) { ttext = "бЎк§¤маЛЕЧН§"; }
		else if(PlayerInfo[targetid][pMember] == 15 || PlayerInfo[targetid][pLeader] == 15) { ttext = "бЎк§¤мїйТ"; }
		GangZoneShowForAll(StationZone,GetPlayerColor(targetid));
		format(string,128,"War Close: %s дґйВЦґ аКµаґХиВБ КУаГзЁбЕйЗ ",ttext);
        SendClientMessageToAll(COLOR_LIGHTBLUE,string);
		PlayerTakingStation[targetid] = 0;
		openwar3 = 0;
		StationTaking = 0;
		SaveStuff();
	}
	return 1;
}
Код:
#define scm(%0,%1,%2) SendClientMessage(%0,%1,%2)
scmf(playerid,color,fstring[],{Float, _}:...) {   // This line warning
   new n=(numargs()-3)*4;
   if(n) {
      new message[255],arg_start,arg_end;
      #emit CONST.alt                fstring
      #emit LCTRL                    5
      #emit ADD
      #emit STOR.S.pri               arg_start
      #emit LOAD.S.alt               n
      #emit ADD
      #emit STOR.S.pri               arg_end
      do {
         #emit LOAD.I
         #emit PUSH.pri
         arg_end-=4;
         #emit LOAD.S.pri           arg_end
      }
      while(arg_end>arg_start);
      #emit PUSH.S                   fstring
      #emit PUSH.C                   255
      #emit PUSH.ADR                 message
      n+=4*3;
      #emit PUSH.S                   n
      #emit SYSREQ.C                 format
      n+=4;
      #emit LCTRL                    4
      #emit LOAD.S.alt               n
      #emit ADD
      #emit SCTRL                    4
      return scm(playerid,color,message);
   } else return scm(playerid,color,fstring);
}



Re: Help me! error & waring - omyim - 09.06.2012

How do I fix this also.


Re: Help me! error & waring - Sandiel - 09.06.2012

pawn Код:
SetPlayerCheckpoint(playerid,-2035.0050,-520.6556,35.3359,5.0);
to
pawn Код:
SetPlayerCheckpoint(playerid,5.0,-2035.0050,-520.6556,35.3359);



Re: Help me! error & waring - omyim - 09.06.2012

How do I fix this also.