Need help :)
#2

Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
for(new i=1; i < MAX_VEHICLES; i++)
{
if(vehdata[i][carexists] == 0)
{
if(userdata[playerid][license] == 1) return 0;
}
else
{
if(userdata[playerid][license] == 0)
SetTimerEx("LicenseMSG",5000,0,"i",playerid);
}
return 1;
}
GetPlayerName(playerid, playername, sizeof(playername));
if(userdata[playerid][usercodetype] == 7)
{
if(IsVehicleIsBike(vehicleid)) MyVeh[playerid] = vehicleid;
}
return 1;
}
public isPlayerInArea(playerID, Float:data[4])
{
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerID, X, Y, Z);
if(X >= data[0] && X <= data[2] && Y >= data[1] && Y <= data[3]) {
return 1;
}
return 0;
}
why using return 1 when its already going in 1 at end of the onplayerentervehicle
use this.
Reply


Messages In This Thread
Need help :) - by SaMuRy - 29.09.2018, 18:23
Re: Need help :) - by CaptainBoi - 29.09.2018, 18:29
Re: Need help :) - by SaMuRy - 29.09.2018, 18:32
Re: Need help :) - by CaptainBoi - 29.09.2018, 18:34
Re: Need help :) - by SaMuRy - 29.09.2018, 19:01
Re: Need help :) - by CaptainBoi - 29.09.2018, 19:21

Forum Jump:


Users browsing this thread: 2 Guest(s)