Player not receiving prompt
#2

Have you heard about something called "readable code"? Your code really isn't readable. It's like reading Python.


if(!(IsACop(killerid) || IsAMember(killerid) || pInfo[playerid][pJailed] > 0 || pInfo[playerid][pAJailed] > 0 || Iter_Contains(Paintp, playerid) || pInfo[killerid][pMember] == 8 || vwp[playerid] == pInfo[playerid][pMember] || pInfo[playerid][pDuel] < INVALID_PLAYER_ID || (Event_Pos[0] == 0.0 && IsPlayerInRangeOfPoint(playerid, 140.0, Event_Pos[0], Event_Pos[1], Event_Pos[2]))))

That query itself is just, you can't read that out in your mind and understand "OK, so if this query where killerid isnt a cop, or a member, or in jail, or in admin jail, or in paintball, OR a member again, OR is in another world, OR is in a duel; is true, AND the query of where the event position is 0 and playerid is in range of that event, do this".

You do the math yourself, you resolve this issue yourself now that you know the proper way to write several if statement.
Reply


Messages In This Thread
Player not receiving prompt - by Maheegan - 07.11.2018, 02:31
Re: Player not receiving prompt - by cSharp - 07.11.2018, 04:34
Re: Player not receiving prompt - by KinderClans - 07.11.2018, 08:27
Re: Player not receiving prompt - by Ermanhaut - 07.11.2018, 10:53

Forum Jump:


Users browsing this thread: 3 Guest(s)