Need help with ranks ! - 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: Need help with ranks ! (
/showthread.php?tid=156769)
Need help with ranks ! -
shabi rox - 24.06.2010
this is my ranks for mayor but when i make myself leader it show no rank[None] ?
else if(PlayerInfo[targetid][pMember] == 7)//Mayor ranks
{
if(PlayerInfo[targetid][pRank] == 1) { rtext = "Mayor's driver"; }
else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Mayor's bodyguard"; }
else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Cheif of mayor's Drivers"; }
else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Cheif of Mayor's bodyguard"; }
else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Vice Mayor"; }
else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Mayor"; }
else { rtext = "Mayor's driver"; }
}
pls i need help
Re: Need help with ranks ! -
bigcomfycouch - 24.06.2010
Код:
else if(PlayerInfo[targetid][pMember] == 7 || PlayerInfo[targetid][pMember] == 7)//Mayor ranks
{
if(PlayerInfo[targetid][pRank] == 1) { rtext = "Mayor's driver"; }
else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Mayor's bodyguard"; }
else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Cheif of mayor's Drivers"; }
else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Cheif of Mayor's bodyguard"; }
else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Vice Mayor"; }
else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Mayor"; }
else { rtext = "Mayor's driver"; }
}
Re: Need help with ranks ! -
shabi rox - 24.06.2010
thkx