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"; } } }
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.
new rtext[25];
else if(PlayerInfo[targetid][pMember] == 1 || PlayerInfo[targetid][pLeader] == 1)//PD Ranks
{
switch(PlayerInfo[targetid][pRank])
{
case 1:format(rtext,25,"Cadet");
case 2:format(rtext,25,"Police Officer");
case 3:format(rtext,25,"Lead Officer");
case 4:format(rtext,25,"Senior Lead Officer");
case 5:format(rtext,25,"Corporal");
case 6:format(rtext,25,"Sergeant");
case 7:format(rtext,25,"Lieutenant");
case 8:format(rtext,25,"Captain");
case 9:format(rtext,25,"Deputy Chief");
case 10:format(rtext,25,"Chief");
default:format(rtext,25,"Cadet");
}
}
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(8941) : error 017: undefined symbol "targerid" C:\Users\Administrator\Desktop\GTARP\gamemodes\LSSLRP.pwn(40061) : error 029: invalid expression, assumed zero C:\Users\Administrator\Desktop\GTARP\gamemodes\LSSLRP.pwn(44312) : warning 203: symbol is never used: "ad" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
else if(PlayerInfo[targetid][pMember] == 1 || PlayerInfo[targetid][pLeader] == 1)//PD Ranks
else if(PlayerInfo[targetid][pMember] == 9 || PlayerInfo[targetid][pLeader] == 9)//NR Ranks { if(PlayerInfo[targetid][pRank] == 1) { rtext = "Trainee"; } else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Writer"; } else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Reporter"; } else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Radio DJ"; } else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Manager"; } else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Director"; } else if(PlayerInfo[targerid][pRank] == 7) { rtext = "Owner"; } else { rtext = "Trainee"; } }
{ new currank[64]; if(PlayerInfo[playerid][pRank] == 1) { currank = "Cadet"; } else if(PlayerInfo[playerid][pRank] == 2) { currank = "Police Officer"; } else if(PlayerInfo[playerid][pRank] == 3) { currank = "Lead Officer"; } else if(PlayerInfo[playerid][pRank] == 4) { currank = "Senior Lead Officer"; } else if(PlayerInfo[playerid][pRank] == 5) { currank = "Corporal"; } else if(PlayerInfo[playerid][pRank] == 6) { currank = "Sergeant"; } else if(PlayerInfo[playerid][pRank] == 7) { currank = "Lieutenant"; } else if(PlayerInfo[playerid][pRank] == 8) { currank = "Captain"; } else if(PlayerInfo[playerid][pRank] == 9) { currank = "Deputy Chief"; } else if(PlayerInfo[playerid][pRank] == 10 { currank = "Chief"; } else { currank = "Cadet"; } format(string, sizeof(string), "[Police] %s %s has just arrested %s", currank ,sendername, giveplayer); OOCNews(COLOR_BLUE, string); }
Eh, dude seriously... Somewhere in your code must be a line -> "new rtext". Search for that. If it comes up more than once in one function or is a global and you recreate it in one function you gotta delete the respective lines. |