G:\Pawno\MW3SAMP-master\gamemodes\minigames.pwn(73) : warning 215: expression has no effect G:\Pawno\MW3SAMP-master\gamemodes\minigames.pwn(79) : warning 215: expression has no effect Pawn compiler 3.2.3664 Copyright © 1997-2016, ITB CompuPhase 2 Warnings.
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; }
PlayerInfo[playerid][pGOD] == 0; PlayerInfo[playerid][pGOD] < 1;
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; }
CMD:vgod(playerid)
{
if(PlayerInfo[playerid][pVIP] != 2) return SendClientMessage(playerid, COLOR_RED, "You don't have V.I.P Access to your account.");
switch (PlayerInfo[playerid][pGOD])
{
case 0:
{
SetPlayerHealth(playerid, 999999999);
SendClientMessage(playerid, COLOR_GREEN, "You have enabled God Mode.");
PlayerInfo[playerid][pGOD] = 1;
}
case 1:
{
SetPlayerHealth(playerid, 100);
SendClientMessage(playerid, COLOR_GREEN, "You have disabled God Mode.");
PlayerInfo[playerid][pGOD] = 0;
}
}
return 1;
}
PlayerInfo[playerid][pGOD] == 0;
PlayerInfo[playerid][pGOD] = 0;
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;
}
else if(PlayerInfo[playerid][pGOD] == 1)
{
SetPlayerHealth(playerid, 100);
SendClientMessage(playerid, COLOR_GREEN, "You have disabled God Mode.");
PlayerInfo[playerid][pGOD] = 0;
}
return 1;
}
It's better to explain how to solve a problem rather than just giving (very simple) 2 code lines to act pro and get Rep.
If you know how to fix it, explain it too. |
if(god[pID] == 0) { printf("God is OFF"); } else if(god[pID] == 1) { printf("God is ON"); }