Arrest command and Rape command bugged
#4

I've taken note of how I was using GetPlayerWantedLevel in the wrong way, and now I can't figure out how to make it the right way.

I got some errors:


Код:
C:\Users\X\Desktop\X\gamemodes\X.pwn(1019) : warning 219: local variable "WantedLevel" shadows a variable at a preceding level
C:\Users\X\Desktop\X\gamemodes\X.pwn(1020) : error 022: must be lvalue (non-constant)
C:\Users\X\Desktop\X\gamemodes\X.pwn(1021) : warning 213: tag mismatch
C:\Users\X\Desktop\X\gamemodes\X.pwn(1021) : warning 205: redundant code: constant expression is zero
C:\Users\X\Desktop\X\gamemodes\X.pwn(1019) : warning 203: symbol is never used: "WantedLevel"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase
Lines:
Код:
1019:	 new WantedLevel;
1020: WantedLevel = GetPlayerWantedLevel(CriminalID);
1021: if(!WantedLevel >= 3) return SendClientMessage(playerid, COLOR_RED, "That player does not have a Wanted Level above 3.");
Thank you for the help.
Reply


Messages In This Thread
Arrest command and Rape command bugged - by NoahF - 06.07.2014, 18:00
Re : Arrest command and Rape command bugged - by Noliax8 - 06.07.2014, 18:24
Re: Arrest command and Rape command bugged - by NoahF - 06.07.2014, 21:41
Re: Arrest command and Rape command bugged - by NoahF - 07.07.2014, 16:23
Re: Arrest command and Rape command bugged - by Ihateyou - 07.07.2014, 16:24
Re: Arrest command and Rape command bugged - by awsomedude - 07.07.2014, 16:30
Re: Arrest command and Rape command bugged - by NoahF - 07.07.2014, 16:33
Re: Arrest command and Rape command bugged - by awsomedude - 07.07.2014, 16:35
Re : Arrest command and Rape command bugged - by Clad - 07.07.2014, 16:37

Forum Jump:


Users browsing this thread: 3 Guest(s)