public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if (PRESSED(KEY_FIRE))
{
new
vehicleid = GetPlayerVehicleID(playerid);
if (vehicleid)
{
SetVehicleVelocity(playerid, 0.0, 0,5, 0.0);
}
}
return 1;
}
return 0;
}
C:\Users\Nel\Desktop\Mijn spullen\GTA Games\Sa-mp 0.3\sa-mp 0.3a\filterscripts\cmdtests.pwn(14) : error 029: invalid expression, assumed zero C:\Users\Nel\Desktop\Mijn spullen\GTA Games\Sa-mp 0.3\sa-mp 0.3a\filterscripts\cmdtests.pwn(14) : error 004: function "OnPlayerKeyStateChange" is not implemented C:\Users\Nel\Desktop\Mijn spullen\GTA Games\Sa-mp 0.3\sa-mp 0.3a\filterscripts\cmdtests.pwn(16) : warning 206: redundant test: constant expression is non-zero C:\Users\Nel\Desktop\Mijn spullen\GTA Games\Sa-mp 0.3\sa-mp 0.3a\filterscripts\cmdtests.pwn(22) : warning 202: number of arguments does not match definition C:\Users\Nel\Desktop\Mijn spullen\GTA Games\Sa-mp 0.3\sa-mp 0.3a\filterscripts\cmdtests.pwn(27) : warning 225: unreachable code Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Errors.
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if (PRESSED(KEY_FIRE))
{
if(IsPlayerInAnyVehicle(playerid)) SetVehicleVelocity(GetPlayerVehicleID(playerid), 0.0, 0,5, 0.0);
}
return 1;
}
C:\Users\Nel\Desktop\Mijn spullen\GTA Games\Sa-mp 0.3\sa-mp 0.3a\filterscripts\cmdtests.pwn(14) : error 029: invalid expression, assumed zero C:\Users\Nel\Desktop\Mijn spullen\GTA Games\Sa-mp 0.3\sa-mp 0.3a\filterscripts\cmdtests.pwn(14) : error 004: function "OnPlayerKeyStateChange" is not implemented C:\Users\Nel\Desktop\Mijn spullen\GTA Games\Sa-mp 0.3\sa-mp 0.3a\filterscripts\cmdtests.pwn(16) : warning 206: redundant test: constant expression is non-zero C:\Users\Nel\Desktop\Mijn spullen\GTA Games\Sa-mp 0.3\sa-mp 0.3a\filterscripts\cmdtests.pwn(18) : warning 202: number of arguments does not match definition C:\Users\Nel\Desktop\Mijn spullen\GTA Games\Sa-mp 0.3\sa-mp 0.3a\filterscripts\cmdtests.pwn(22) : warning 225: unreachable code Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Errors.
#include <a_samp>
#include <core>
#include <float>
#include <time>
#include <file>
#include <utils>
#include <morphinc>
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if (PRESSED(KEY_FIRE))
{
new vehicleid = GetPlayerVehicleID(playerid);
if (vehicleid)
{
SetVehicleVelocity(playerid, 0.0, 0,5, 0.0);
}
}
return 1;
}
return 0;
}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if (PRESSED(KEY_FIRE))
{
if(IsPlayerInAnyVehicle(playerid)) SetVehicleVelocity(GetPlayerVehicleID(playerid), 0.0, 0,5, 0.0);
}
return 1;
}
Originally Posted by Ace_Menace
You're missing one of the core includes.
Try to add these: pawn Код:
|
#include <core>
#include <float>
#include <string>
#include <file>
#include <time>
#include <datagram>
#include <a_players>
#include <a_vehicles>
#include <a_objects>
#include <a_sampdb>
Originally Posted by Ace_Menace
You're missing one of the core includes.
|
Originally Posted by lolumadd [cod5server.tk
]
Quote:
Dont tell what you don't know. |
#include <a_samp>
#include <a_players>
#define PRESSED
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/jump", true) == 0) {
if(IsPlayerInAnyVehicle(playerid)) SetVehicleVelocity(GetPlayerVehicleID(playerid), 0.0,0.0,1.0);
else SetPlayerVelocity(playerid,0.0,0.0,1.0);
return 1;
}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if (PRESSED(KEY_FIRE))
{
if(IsPlayerInAnyVehicle(playerid)) SetVehicleVelocity(GetPlayerVehicleID(playerid), 0.0, 0,5, 0.0);
}
return 1;
}
return 0;
}
C:\Users\Nel\Desktop\Mijn spullen\GTA Games\Sa-mp 0.3\sa-mp 0.3a\filterscripts\cmdtests.pwn(14) : error 029: invalid expression, assumed zero C:\Users\Nel\Desktop\Mijn spullen\GTA Games\Sa-mp 0.3\sa-mp 0.3a\filterscripts\cmdtests.pwn(14) : error 004: function "OnPlayerKeyStateChange" is not implemented C:\Users\Nel\Desktop\Mijn spullen\GTA Games\Sa-mp 0.3\sa-mp 0.3a\filterscripts\cmdtests.pwn(16) : warning 206: redundant test: constant expression is non-zero C:\Users\Nel\Desktop\Mijn spullen\GTA Games\Sa-mp 0.3\sa-mp 0.3a\filterscripts\cmdtests.pwn(18) : warning 202: number of arguments does not match definition C:\Users\Nel\Desktop\Mijn spullen\GTA Games\Sa-mp 0.3\sa-mp 0.3a\filterscripts\cmdtests.pwn(22) : warning 225: unreachable code Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Errors.
if(IsPlayerInAnyVehicle(playerid)) SetVehicleVelocity(GetPlayerVehicleID(playerid), 0.0,0.0,1.0);
#define PRESSED