Problem in /heal
#3

You can't have pMember at 14 AND 18 at the same time so the above if-statement would never work.
Try this one instead to check if it's either 14 or 18, then check if he's in an ambulance and he's the driver:
Код:
if(((PlayerInfo[playerid][pMember] == 14) || (PlayerInfo[playerid][pMember] == 18)) && IsAnAmbulance(GetPlayerVehicleID(playerid)) && (GetPlayerVehicleSeat(playerid) == 0))
I also don't get the antifraude raport system in that command.
It doesn't block anything, except prevent making a second entry in the database.
Does that entry get removed somewhere else, which is inserted everytime someone uses the heal command?

What is it supposed to do?
Reply


Messages In This Thread
Problem in /heal - by marshmallow - 28.05.2018, 05:52
Re: Problem in /heal - by andrejc999 - 28.05.2018, 06:01
Re: Problem in /heal - by AmigaBlizzard - 28.05.2018, 08:00

Forum Jump:


Users browsing this thread: 1 Guest(s)