SA-MP Forums Archive
[HELP]turning vehicle on with shift - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP]turning vehicle on with shift (/showthread.php?tid=237536)



[HELP]turning vehicle on with shift - cacauagiar - 09.03.2011

I already have the script to turn on the vehicle by command but i cant make it a command pressing shiftI have tryed this

if ((newkeys==KEY_JUMP)&&(GetPlayerState(playerid) == PLAYER_STATE_DRIVER))
{
if(!PlayerToPoint(1,playerid,1930.2745,-1772.3357,13.5469))
{
OnPlayerCommandText(playerid,"/virarchave");

}
}

But i get theese warnings

C:\Users\Moksovisk\Downloads\Codando GTA\samp03csvr_win32 codando\gamemodes\BSL.pwn(5866) : warning 217: loose indentation
C:\Users\Moksovisk\Downloads\Codando GTA\samp03csvr_win32 codando\gamemodes\BSL.pwn(24079) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

Header size: 12700 bytes
Code size: 2305356 bytes
Data size: 6973624 bytes
Stack/heap size: 16384 bytes; estimated max. usage: unknown, due to recursion
Total requirements: 9308064 bytes

2 Warnings.


AW: [HELP]turning vehicle on with shift - Nero_3D - 09.03.2011

mark the lines