Redundant code: constant expression is zero
#1

Quote:

(876) : warning 206: redundant test: constant expression is non-zero
(1223) : warning 206: redundant test: constant expression is non-zero
(1515) : warning 205: redundant code: constant expression is zero
(1524) : warning 205: redundant code: constant expression is zero
(1548) : warning 205: redundant code: constant expression is zero
(1561) : warning 205: redundant code: constant expression is zero
(1620) : warning 205: redundant code: constant expression is zero
(1639) : warning 205: redundant code: constant expression is zero
(1661) : warning 205: redundant code: constant expression is zero
(1684) : warning 205: redundant code: constant expression is zero
(1698) : warning 205: redundant code: constant expression is zero
(1710) : warning 205: redundant code: constant expression is zero
(1732) : warning 205: redundant code: constant expression is zero
(1746) : warning 205: redundant code: constant expression is zero
(1760) : warning 205: redundant code: constant expression is zero

15 Warnings.

I'm trying to compile AVS filterscript but everytime I try to I get these errors the line which gives the error throughout the entire script is this one. Anyone knows what is wrong with it?

Код:
	if(!IsAdmin(playerid, 1)) return SendClientMessage(playerid, COLOR_RED, "You are not admin!");
Reply
#2

FIXED
pawn Код:
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, COLOR_RED, "You are not admin!");
https://sampwiki.blast.hk/wiki/IsPlayerAdmin
Reply
#3

Quote:
Originally Posted by Glad2BeHere
Посмотреть сообщение
FIXED
pawn Код:
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, COLOR_RED, "You are not admin!");
https://sampwiki.blast.hk/wiki/IsPlayerAdmin
Thanks that worked
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)