Extend Command
#1

Hello as the topic says i want to extend this command so it works for both IsACopCar and also for IsASasdCar
have been trying adding it but cant get it work, if someone have knowledge about this please help me


Here is the Line

Код:
	if(!IsACopCar(vehicle) != !IsASASDCar(vehicle)) return SCM(playerid, COLOR_INFO, "You are not in a law enforcement vehicle");
Reply
#2

Replace != with &&.

!= stands for does not equal and && stands for and.
Reply
#3

Use this format. This is an example
pawn Код:
if(IsACop(playerid) || IsAnAgent(playerid) || IsAHitman(playerid))
Reply
#4

Yah i solved it thanks maN!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)