rText Error ( Again... ) [Solved Thanks Ray!]
#1

Script :
Код:
    new rtext[128]
		else if(PlayerInfo[targetid][pMember] == 1 || PlayerInfo[targetid][pLeader] == 1)//PD Ranks
		{
		  if(PlayerInfo[targetid][pRank] == 1) { rtext = "Cadet"; }
			else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Police Officer"; }
			else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Lead Officer"; }
			else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Senior Lead Officer"; }
			else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Corporal"; }
	    else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Sergeant"; }
	    else if(PlayerInfo[targetid][pRank] == 7) { rtext = "Lieutenant"; }
	    else if(PlayerInfo[targetid][pRank] == 8) { rtext = "Captain"; }
	    else if(PlayerInfo[targetid][pRank] == 9) { rtext = "Deputy Chief"; }
	    else if(PlayerInfo[targetid][pRank] == 10) { rtext = "Chief"; }
			else { rtext = "Cadet"; }
		}
}
Errors :
Код:
C:\Users\Administrator\Desktop\GTARP\gamemodes\LSSLRP.pwn(8855) : warning 219: local variable "rtext" shadows a variable at a preceding level
C:\Users\Administrator\Desktop\GTARP\gamemodes\LSSLRP.pwn(8856) : error 029: invalid expression, assumed zero
C:\Users\Administrator\Desktop\GTARP\gamemodes\LSSLRP.pwn(8856) : warning 215: expression has no effect
C:\Users\Administrator\Desktop\GTARP\gamemodes\LSSLRP.pwn(8856) : error 001: expected token: ";", but found "if"
C:\Users\Administrator\Desktop\GTARP\gamemodes\LSSLRP.pwn(8781) : warning 204: symbol is assigned a value that is never used: "cash"
C:\Users\Administrator\Desktop\GTARP\gamemodes\LSSLRP.pwn(8874) : error 017: undefined symbol "rtext"
C:\Users\Administrator\Desktop\GTARP\gamemodes\LSSLRP.pwn(8874) : warning 215: expression has no effect
C:\Users\Administrator\Desktop\GTARP\gamemodes\LSSLRP.pwn(8875) : error 017: undefined symbol "rtext"
C:\Users\Administrator\Desktop\GTARP\gamemodes\LSSLRP.pwn(8875) : warning 215: expression has no effect
C:\Users\Administrator\Desktop\GTARP\gamemodes\LSSLRP.pwn(8876) : error 017: undefined symbol "rtext"
C:\Users\Administrator\Desktop\GTARP\gamemodes\LSSLRP.pwn(8876) : warning 215: expression has no effect
C:\Users\Administrator\Desktop\GTARP\gamemodes\LSSLRP.pwn(8877) : error 017: undefined symbol "rtext"
C:\Users\Administrator\Desktop\GTARP\gamemodes\LSSLRP.pwn(8877) : warning 215: expression has no effect
C:\Users\Administrator\Desktop\GTARP\gamemodes\LSSLRP.pwn(8878) : error 017: undefined symbol "rtext"
C:\Users\Administrator\Desktop\GTARP\gamemodes\LSSLRP.pwn(8878) : warning 215: expression has no effect
C:\Users\Administrator\Desktop\GTARP\gamemodes\LSSLRP.pwn(8879) : error 017: undefined symbol "rtext"
C:\Users\Administrator\Desktop\GTARP\gamemodes\LSSLRP.pwn(8879) : warning 215: expression has no effect
C:\Users\Administrator\Desktop\GTARP\gamemodes\LSSLRP.pwn(8880) : error 017: undefined symbol "rtext"
C:\Users\Administrator\Desktop\GTARP\gamemodes\LSSLRP.pwn(8880) : warning 215: expression has no effect
C:\Users\Administrator\Desktop\GTARP\gamemodes\LSSLRP.pwn(8884) : error 017: undefined symbol "rtext"
C:\Users\Administrator\Desktop\GTARP\gamemodes\LSSLRP.pwn(8884) : warning 215: expression has no effect
C:\Users\Administrator\Desktop\GTARP\gamemodes\LSSLRP.pwn(8885) : error 017: undefined symbol "rtext"
C:\Users\Administrator\Desktop\GTARP\gamemodes\LSSLRP.pwn(8885) : warning 215: expression has no effect
C:\Users\Administrator\Desktop\GTARP\gamemodes\LSSLRP.pwn(8886) : error 017: undefined symbol "rtext"
C:\Users\Administrator\Desktop\GTARP\gamemodes\LSSLRP.pwn(8886) : warning 215: expression has no effect
C:\Users\Administrator\Desktop\GTARP\gamemodes\LSSLRP.pwn(8887) : error 017: undefined symbol "rtext"
C:\Users\Administrator\Desktop\GTARP\gamemodes\LSSLRP.pwn(8887) : warning 215: expression has no effect
C:\Users\Administrator\Desktop\GTARP\gamemodes\LSSLRP.pwn(8888) : error 017: undefined symbol "rtext"
C:\Users\Administrator\Desktop\GTARP\gamemodes\LSSLRP.pwn(8888) : warning 215: expression has no effect
C:\Users\Administrator\Desktop\GTARP\gamemodes\LSSLRP.pwn(8889) : error 017: undefined symbol "rtext"
C:\Users\Administrator\Desktop\GTARP\gamemodes\LSSLRP.pwn(8889) : warning 215: expression has no effect
C:\Users\Administrator\Desktop\GTARP\gamemodes\LSSLRP.pwn(8890) : error 017: undefined symbol "rtext"
C:\Users\Administrator\Desktop\GTARP\gamemodes\LSSLRP.pwn(8890) : warning 215: expression has no effect
C:\Users\Administrator\Desktop\GTARP\gamemodes\LSSLRP.pwn(8894) : error 017: undefined symbol "rtext"
C:\Users\Administrator\Desktop\GTARP\gamemodes\LSSLRP.pwn(8894) : warning 215: expression has no effect
C:\Users\Administrator\Desktop\GTARP\gamemodes\LSSLRP.pwn(8895) : error 017: undefined symbol "rtext"
C:\Users\Administrator\Desktop\GTARP\gamemodes\LSSLRP.pwn(8895) : warning 215: expression has no effect
C:\Users\Administrator\Desktop\GTARP\gamemodes\LSSLRP.pwn(8896) : error 017: undefined symbol "rtext"
C:\Users\Administrator\Desktop\GTARP\gamemodes\LSSLRP.pwn(8896) : warning 215: expression has no effect
C:\Users\Administrator\Desktop\GTARP\gamemodes\LSSLRP.pwn(8897) : error 017: undefined symbol "rtext"
C:\Users\Administrator\Desktop\GTARP\gamemodes\LSSLRP.pwn(8897) : warning 215: expression has no effect
C:\Users\Administrator\Desktop\GTARP\gamemodes\LSSLRP.pwn(8898) : error 017: undefined symbol "rtext"
C:\Users\Administrator\Desktop\GTARP\gamemodes\LSSLRP.pwn(8898) : warning 215: expression has no effect
C:\Users\Administrator\Desktop\GTARP\gamemodes\LSSLRP.pwn(8899) : error 017: undefined symbol "rtext"
C:\Users\Administrator\Desktop\GTARP\gamemodes\LSSLRP.pwn(8899) : warning 215: expression has no effect
C:\Users\Administrator\Desktop\GTARP\gamemodes\LSSLRP.pwn(8900) : error 017: undefined symbol "rtext"
C:\Users\Administrator\Desktop\GTARP\gamemodes\LSSLRP.pwn(8900) : warning 215: expression has no effect
C:\Users\Administrator\Desktop\GTARP\gamemodes\LSSLRP.pwn(8904) : error 017: undefined symbol "rtext"
C:\Users\Administrator\Desktop\GTARP\gamemodes\LSSLRP.pwn(8904) : warning 215: expression has no effect
C:\Users\Administrator\Desktop\GTARP\gamemodes\LSSLRP.pwn(8905) : error 017: undefined symbol "rtext"
C:\Users\Administrator\Desktop\GTARP\gamemodes\LSSLRP.pwn(8905) : warning 215: expression has no effect
C:\Users\Administrator\Desktop\GTARP\gamemodes\LSSLRP.pwn(8906) : error 017: undefined symbol "rtext"

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


26 Errors.
Reply


Messages In This Thread
rText Error ( Again... ) [Solved Thanks Ray!] - by SamAlexSam - 31.01.2010, 13:45
Re: rText Error ( Again... ) - by SamAlexSam - 31.01.2010, 13:49
Re: rText Error ( Again... ) - by Backwardsman97 - 31.01.2010, 14:19
Re: rText Error ( Again... ) - by SamAlexSam - 31.01.2010, 14:23
Re: rText Error ( Again... ) - by SamAlexSam - 31.01.2010, 14:45
Re: rText Error ( Again... ) - by ray187 - 31.01.2010, 14:47
Re: rText Error ( Again... ) - by SamAlexSam - 31.01.2010, 14:48
Re: rText Error ( Again... ) - by ray187 - 31.01.2010, 14:51
Re: rText Error ( Again... ) - by SamAlexSam - 31.01.2010, 14:51
Re: rText Error ( Again... ) - by ray187 - 31.01.2010, 14:53

Forum Jump:


Users browsing this thread: 2 Guest(s)