Help me with /beginevent command
#3

Quote:
Originally Posted by XtremeRz
Посмотреть сообщение
You didn't return a value

Do it by typing "return 1;" end of the if, and another "return 1;" at the end of the CMD

Tell me what's happen after you do this.
Код:
if(EventCars[rand] == INVALID_VEHICLE_ID)
{
	new Float:x, Float:y, Float:z;
	new Float:Angle;
	GetPlayerFacingAngle(i, Angle);
	GetPlayerPos(i, x, y, z);
	EventCars[rand] = CreateVehicle(Events[EventCar], x,y,z+2,Angle,-1,-1,VEHICLE_RESPAWN);
	VehicleFuel[EventCars[rand]] = 100.0;
	Vehicle_ResetData(EventCars[rand]);
	PutPlayerInVehicle(i, EventCars[rand], 0);
	SetPlayerHealth(i, Events[Health]);
	SetPlayerArmor(i, Events[Armor]);
	CarShooting[i] = 1;
        return 1;
}
Like this ?
Reply


Messages In This Thread
Help me with /beginevent command - by Kenxxx - 22.04.2016, 07:07
Re: Help me with /beginevent command - by XtremeRz - 22.04.2016, 07:21
Re: Help me with /beginevent command - by Kenxxx - 22.04.2016, 07:24
Re: Help me with /beginevent command - by oMa37 - 22.04.2016, 07:47
Re: Help me with /beginevent command - by Kenxxx - 22.04.2016, 08:49
Re: Help me with /beginevent command - by Kenxxx - 22.04.2016, 09:44
Re: Help me with /beginevent command - by Sew_Sumi - 22.04.2016, 09:52
Re: Help me with /beginevent command - by Kenxxx - 22.04.2016, 10:15
Re: Help me with /beginevent command - by Konstantinos - 22.04.2016, 10:22
Re: Help me with /beginevent command - by Kenxxx - 22.04.2016, 10:40

Forum Jump:


Users browsing this thread: 1 Guest(s)