SA-MP Forums Archive
rtext Help![Solved] - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: rtext Help![Solved] (/showthread.php?tid=124675)



rtext Help![Solved] - SamAlexSam - 31.01.2010

Okay
I Got This
Код:
		  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"; }
Isnt this supposed to work?


Re: rtext Help![Solved] - Calgon - 31.01.2010

...Does your script even have another 5 variables to store those ranks?