C:\Users\USER\Desktop\Gamemode.pwn(239) : warning 217: loose indentation
C:\Users\USER\Desktop\Gamemode.pwn(239) : error 029: invalid expression, assumed zero
C:\Users\USER\Desktop\Gamemode.pwn(239) : error 004: function "OnPlayerEnterVehicle" is not implemented
C:\Users\USER\Desktop\Gamemode.pwn(244) : warning 225: unreachable code
C:\Users\USER\Desktop\Gamemode.pwn(244) : error 029: invalid expression, assumed zero
C:\Users\USER\Desktop\Gamemode.pwn(244) : error 004: function "OnPlayerKeyStateChange" is not implemented
C:\Users\USER\Desktop\Gamemode.pwn(245) : warning 217: loose indentation
C:\Users\USER\Desktop\Gamemode.pwn(246) : error 017: undefined symbol "PRESSED"
C:\Users\USER\Desktop\Gamemode.pwn(246) : error 036: empty statement
C:\Users\USER\Desktop\Gamemode.pwn(257) : error 017: undefined symbol "newkeys"
C:\Users\USER\Desktop\Gamemode.pwn(265) : error 017: undefined symbol "newkeys"
C:\Users\USER\Desktop\Gamemode.pwn(266) : warning 217: loose indentation
C:\Users\USER\Desktop\Gamemode.pwn(269) : error 030: compound statement not closed at the end of file (started at line 97)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
9 Errors.
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
SendClientMessage(playerid, COLOR_DARKGREY, "You have enter a vehicle! Type /tune1-3 if you want to tune a car");
return 1;
}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(PRESSED(KEY_SUBMISSION))
{
new vehicleid = GetPlayerVehicleID(playerid);
if(IsPlayerInVehicle(playerid, vehicleid))
{
new VehicleID, Float:X, Float:Y, Float:Z, Float:Angle;
GetPlayerPos(playerid, X, Y, Z);
VehicleID = GetPlayerVehicleID(playerid);
GetVehicleZAngle(VehicleID, Angle);
SetVehicleZAngle(VehicleID, Angle);
SetVehicleHealth(VehicleID,1000.0);
AddVehicleComponent(vehicleid, 1010);
RepairVehicle(vehicleid);
}
}
if(PRESSED(KEY_ACTION))
{
if(IsPlayerNotInVehicle(playerid))
{
SendClientMessage(playerid, red, "You need to be in any Vehicle !");
}
}
return 1;
}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(PRESSED,("KEY_SUBMISSION);
{
new vehicleid = GetPlayerVehicleID(playerid);
if(IsPlayerInVehicle(playerid, vehicleid))
{
SetVehicleHealth(vehicleid,1000.0);
RepairVehicle(GetPlayerVehicleID(playerid));
PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
SendClientMessage(playerid,COLOR_YELLOW,"Vehicle fixed!");
}
}
if(PRESSED(KEY_ACTION))
{
if(IsPlayerNotInVehicle(playerid))
{
SendClientMessage(playerid,COLOR_YELLOW,"You have to be in a vehicle!");
}
}
if(PRESSED(KEY_SUBMISSION))
{
if(IsPlayerInAnyVehicle(playerid))
{
new Float:X, Float:Y, Float:Z, Float:Angle;
RepairVehicle ( GetPlayerVehicleID ( playerid ) );
SetVehicleHealth ( GetPlayerVehicleID ( playerid ), 9999.0 );
GetVehicleZAngle( GetPlayerVehicleID ( playerid ), Angle );
SetVehicleZAngle( GetPlayerVehicleID ( playerid ), Angle );
AddVehicleComponent( GetPlayerVehicleID ( playerid ), 1010 );
}
else
{
SendClientMessage(playerid, red, "You need to be in any Vehicle !");
}
}
C:\Users\USER\Desktop\HELP.pwn(239) : warning 217: loose indentation
C:\Users\USER\Desktop\HELP.pwn(239) : error 029: invalid expression, assumed zero
C:\Users\USER\Desktop\HELP.pwn(239) : error 004: function "OnPlayerEnterVehicle" is not implemented
C:\Users\USER\Desktop\HELP.pwn(245) : warning 225: unreachable code
C:\Users\USER\Desktop\HELP.pwn(245) : error 029: invalid expression, assumed zero
C:\Users\USER\Desktop\HELP.pwn(245) : error 004: function "OnPlayerKeyStateChange" is not implemented
C:\Users\USER\Desktop\HELP.pwn(246) : warning 217: loose indentation
C:\Users\USER\Desktop\HELP.pwn(249) : warning 203: symbol is never used: "Z"
C:\Users\USER\Desktop\HELP.pwn(249) : warning 203: symbol is never used: "Y"
C:\Users\USER\Desktop\HELP.pwn(249) : warning 203: symbol is never used: "X"
C:\Users\USER\Desktop\HELP.pwn(262) : warning 217: loose indentation
C:\Users\USER\Desktop\HELP.pwn(262) : error 017: undefined symbol "newkeys"
C:\Users\USER\Desktop\HELP.pwn(263) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
5 Errors.
PHP код:
|
oh sorry haha
My includes are: a_http.inc a_mysql.inc a_npc.inc a_objects.inc a_players.inc a_samp.inc a_sampdb.inc a_vehicles.inc core.inc datagram.inc file.inc float.inc foreach.inc regex.inc sscanf2.inc string.inc time.inc zcmd.inc |
#include <a_samp>