09.03.2011, 22:28
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.
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.