09.10.2012, 15:39
(
Последний раз редактировалось CrazyManiac; 09.10.2012 в 16:48.
)
FIXED
#pragma tabsize 0
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/engine", cmdtext, true, 10) == 0)
{
new vehicleid = GetPlayerVehicleID(playerid);
new engine, lights, alarm, doors, bonnet, boot, objective;
if(IsPlayerInAnyVehicle(playerid))
{
if(GetPlayerVehicleSeat(playerid) == 0)
{
GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);
if(engine == 1)
{
GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(vehicleid,false,lights,alarm,doors,bonnet,boot,objective);
GameTextForPlayer(playerid,"Vehicle Engine Stopped!",2000,6);
return 1;
}
else
SetVehicleParamsEx(vehicleid,true,lights,alarm,doors,bonnet,boot,objective);
GameTextForPlayer(playerid,"Vehicle Engine Started!",2000,6);
}
else SendClientMessage(playerid,-1,"Error: You are not at the driving seat!");
return 1;
}
else
SendClientMessage(playerid,-1,"Error: You are not in a vehicle!");
}
if (strcmp("/lock", cmdtext, true, 10) == 0)
{
new engine, lights, alarm, doors, bonnet, boot, objective;
new vehicleid = GetPlayerVehicleID(playerid);
if(IsPlayerInAnyVehicle(playerid))
{
GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);
if(doors == 1)
{
GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(vehicleid,engine,lights,alarm,false,bonnet,boot,objective);
GameTextForPlayer(playerid,"Vehicle Unlocked!",2000,6);
return 1;
}
else
SetVehicleParamsEx(vehicleid,engine,lights,alarm,true,bonnet,boot,objective);
GameTextForPlayer(playerid,"Vehicle Locked!",2000,6);
}
else
SendClientMessage(playerid,ROOD,"Error: You are not in a vehicle!");
return 0;
}
if (strcmp("/help", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid,-1,"{000000}**{210000}*{450000}*{610000}*{700000}*{8A0000}*{A60000}*{B80000}*{CC0000}*{DB0000}*{FF0000}*{FF2929}*{FF4D4D}*{FF6161}*{FF7A7A}*{FF9191}*{FFABAB}*"};
SendClientMessage(playerid,0xFFFFFF,"Hello, welcome to the help section!");
SendClientMessage(playerid,0xFFFFFF,"There are 2 teams. Yellow and Red. Try killing your enemy by teaming up with"};
SendClientMessage(playerid,0xFFFFFF,"other friendly users. Please read /rules! Use /newb for questions.");
SendClientMessage(playerid,0xFFFFFF,"Use /report if you saw a Hacker / Rulebreaker.");
SendClientMessage(playerid,-1,"{000000}**{210000}*{450000}*{610000}*{700000}*{8A0000}*{A60000}*{B80000}*{CC0000}*{DB0000}*{FF0000}*{FF2929}*{FF4D4D}*{FF6161}*{FF7A7A}*{FF9191}*{FFABAB}*"};
return 1;
}
}
C:\Documents and Settings\****\****\****\pawno\include\YSI\internal\y_dohooks.inc(2572) : warning 235: public function lacks forward declaration (symbol "OnUnoccupiedVehicleUpdate") C:\Documents and Settings\****\****\****\pawno\include\YSI\internal\y_dohooks.inc(3432) : warning 235: public function lacks forward declaration (symbol "OnPlayerTakeDamage") C:\Documents and Settings\****\****\****\pawno\include\YSI\internal\y_dohooks.inc(3501) : warning 235: public function lacks forward declaration (symbol "OnPlayerGiveDamage") C:\Documents and Settings\****\****\****\gamemodes\Dayz3.pwn(184) : error 035: argument type mismatch (argument 2) C:\Documents and Settings\****\****\****\gamemodes\Dayz3.pwn(189) : error 001: expected token: ",", but found "}" C:\Documents and Settings\****\****\****\gamemodes\Dayz3.pwn(189) : error 036: empty statement C:\Documents and Settings\****\****\****\gamemodes\Dayz3.pwn(191) : error 001: expected token: ",", but found "}" C:\Documents and Settings\****\****\****\gamemodes\Dayz3.pwn(191) : error 010: invalid function or declaration C:\Documents and Settings\****\****\****\gamemodes\Dayz3.pwn(195) : error 010: invalid function or declaration Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 6 Errors.
warning 235: public function lacks forward declaration (symbol "OnUnoccupiedVehicleUpdate")
forward OnUnoccupiedVehicleUpdate(vehicleid, playerid, passenger_seat);