warning 215: expression has no effect
#2

Код:
PlayerInfo[playerid][pGOD] == 0;
PlayerInfo[playerid][pGOD] < 1;
You're trying to use selection operators to set variables.

It should be:
Код:
CMD:vgod(playerid)
{
   if(PlayerInfo[playerid][pVIP] >= 2) return SendClientMessage(playerid, COLOR_RED, "You don't have V.I.P Access to you're account.");
   {
	 if(PlayerInfo[playerid][pGOD] < 0)
	 {
		SetPlayerHealth(playerid, 999999999);
        SendClientMessage(playerid, COLOR_GREEN, "You have enabled God Mode.");
        PlayerInfo[playerid][pGOD] = 1;
     }
     if(PlayerInfo[playerid][pGOD] < 1)
	 {
		SetPlayerHealth(playerid, 100);
        SendClientMessage(playerid, COLOR_GREEN, "You have disabled God Mode.");
        PlayerInfo[playerid][pGOD] = 0;
     }
   }
   return 1;
}
Reply


Messages In This Thread
warning 215: expression has no effect - by ZigGamerx - 14.10.2018, 18:39
Re: warning 215: expression has no effect - by Chyakka - 14.10.2018, 18:46
Re: warning 215: expression has no effect - by KinderClans - 14.10.2018, 18:59
Re: warning 215: expression has no effect - by DaniceMcHarley - 14.10.2018, 19:03
Re: warning 215: expression has no effect - by UFF - 15.10.2018, 05:28
Re: warning 215: expression has no effect - by v1k1nG - 15.10.2018, 08:44
Re: warning 215: expression has no effect - by UFF - 15.10.2018, 12:21

Forum Jump:


Users browsing this thread: 3 Guest(s)