Cruise Control Help
#1

I'm trying to make a cruise control system for my server but when i added it. it causes pawno crashes anyone know
pawn Код:
if (strcmp("/cc", cmdtext, true, 10) == 0)
    {
        new Float:vX, Float:vY, Float:vZ;
        GetVehicleVelocity(GetPlayerVehicleID(playerid), vX, vY, vZ);
                          SetVehicleVelocity(GetPlayerVehicleID(playerid), vX, vY, vZ);
        SendClientMessage(playerid, COLOR_ORANGE,"Cruise control engaged to turn it of type /cc again.");
        return 1;
    }
    return 0;
Reply
#2

It's probably something else in the script.

EDIT:

You're script won't even work, it needs a timer to keep setting the velocity, to keep it cruising.
Reply
#3

could you explain it more as i don't understand
Reply
#4

how would i put a timer on it ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)