[FilterScript] Prevent AFK Drivers Bug
#9

Quote:
Originally Posted by Nanory
Посмотреть сообщение
What is with vehicleid 0 ?

if (vehicleid>0) {
should be:
if(vehicleid != INVALID_VEHICLE_ID)
In my opinion both ways are valid.
INVALID_VEHICLE_ID is 65535, I think.
Vehicles ids start from 1, try make a command to teleport to vehicle with ID 1000 just having 5 vehicles in your server and checking if the typed id isn't the same as INVALID_VEHICLE_ID. For example:
pawn Код:
COMMAND:gotoveh(playerid, params[])
{
    new veh_id;
    if(sscanf(params,"d",veh_id)) return 1;
    if(veh_id != INVALID_VEHICLE_ID)
    {
         //Teleport
    } else { SendClientMessage(playerid,-1,"You won't get this message never"); }
    return 1;
}
_______________________
Good idea, and good job.
As they say, I think the looping form isn't the best.

Best regards!
Reply


Messages In This Thread
Prevent AFK Drivers Bug - by Grimrandomer - 14.06.2012, 08:17
AW: Prevent AFK Drivers Bug - by Nanory - 14.06.2012, 12:33
Re: Prevent AFK Drivers Bug - by Master_Gangster - 14.06.2012, 15:39
Re: Prevent AFK Drivers Bug - by Littlehelper - 14.06.2012, 15:54
Re: Prevent AFK Drivers Bug - by Faisal_khan - 14.06.2012, 16:08
Re: Prevent AFK Drivers Bug - by Niko_boy - 14.06.2012, 17:35
Re: Prevent AFK Drivers Bug - by Master_Gangster - 14.06.2012, 18:03
Re: Prevent AFK Drivers Bug - by RedWingz - 14.06.2012, 18:39
Respuesta: AW: Prevent AFK Drivers Bug - by [DOG]irinel1996 - 14.06.2012, 19:47
AW: Prevent AFK Drivers Bug - by Extremo - 14.06.2012, 19:52

Forum Jump:


Users browsing this thread: 1 Guest(s)