31.01.2010, 14:23
Код:
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); }