if(!strcmp(cmd, "/hotwire", true)) { if(engineOn[GetPlayerVehicleID(playerid)]) return SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Engine already started!"); if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Your key Please"); if(GetPlayerState(playerid) == PLAYER_STATE_PASSENGER) return SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Only the driver can do this!"); if(IsAtDealership(playerid)) return SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Do you Think you can steal this car"); if(pveh == 510) return SendClientMessage(playerid, COLOR_LIGHT_BLUE, "You don't need to start a bike!"); if(pveh == 462) return SendClientMessage(playerid, COLOR_LIGHT_BLUE, "You don't need to start a bike!"); if(idcar == 59 || idcar == 60) return SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Access denied!"); if(IsAtCarrental(playerid)) return SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Do you Think you can steal this car"); new playerveh = GetPlayerVehicleID(playerid); PutPlayerInVehicle(playerid, playerveh, 0); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "* %s tries to hotwire the car", sendername); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); SetTimerEx("StartingTheVehicle",7000,0,"i",playerid); GameTextForPlayer(playerid, "~w~Hotwiring The Vehicle...",3500,3); gEngine[playerid] = 1; return 1; }
if(!strcmp(cmd, "/hotwire", true)) { if(PlayerInfo[playerid][pJob] == 5) { if(engineOn[GetPlayerVehicleID(playerid)]) return SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Engine already started!"); if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Your key Please"); if(GetPlayerState(playerid) == PLAYER_STATE_PASSENGER) return SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Only the driver can do this!"); if(IsAtDealership(playerid)) return SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Do you Think you can steal this car"); if(pveh == 510) return SendClientMessage(playerid, COLOR_LIGHT_BLUE, "You don't need to start a bike!"); if(pveh == 462) return SendClientMessage(playerid, COLOR_LIGHT_BLUE, "You don't need to start a bike!"); if(idcar == 59 || idcar == 60) return SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Access denied!"); if(IsAtCarrental(playerid)) return SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Do you Think you can steal this car"); new playerveh = GetPlayerVehicleID(playerid); PutPlayerInVehicle(playerid, playerveh, 0); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "* %s tries to hotwire the car", sendername); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); SetTimerEx("StartingTheVehicle",7000,0,"i",playerid); GameTextForPlayer(playerid, "~w~Hotwiring The Vehicle...",3500,3); gEngine[playerid] = 1; return 1; }
if(!strcmp(cmd, "/hotwire", true)) { if(PlayerInfo[playerid][pJob] == 5) { if(engineOn[GetPlayerVehicleID(playerid)]) return SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Engine already started!"); if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Your key Please"); if(GetPlayerState(playerid) == PLAYER_STATE_PASSENGER) return SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Only the driver can do this!"); if(IsAtDealership(playerid)) return SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Do you Think you can steal this car"); if(pveh == 510) return SendClientMessage(playerid, COLOR_LIGHT_BLUE, "You don't need to start a bike!"); if(pveh == 462) return SendClientMessage(playerid, COLOR_LIGHT_BLUE, "You don't need to start a bike!"); if(idcar == 59 || idcar == 60) return SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Access denied!"); if(IsAtCarrental(playerid)) return SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Do you Think you can steal this car"); new playerveh = GetPlayerVehicleID(playerid); PutPlayerInVehicle(playerid, playerveh, 0); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "* %s tries to hotwire the car", sendername); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); SetTimerEx("StartingTheVehicle",7000,0,"i",playerid); GameTextForPlayer(playerid, "~w~Hotwiring The Vehicle...",3500,3); gEngine[playerid] = 1; } return 1; }
You forgot to put a bracket. Try this:
Код:
if(!strcmp(cmd, "/hotwire", true)) { if(PlayerInfo[playerid][pJob] == 5) { if(engineOn[GetPlayerVehicleID(playerid)]) return SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Engine already started!"); if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Your key Please"); if(GetPlayerState(playerid) == PLAYER_STATE_PASSENGER) return SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Only the driver can do this!"); if(IsAtDealership(playerid)) return SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Do you Think you can steal this car"); if(pveh == 510) return SendClientMessage(playerid, COLOR_LIGHT_BLUE, "You don't need to start a bike!"); if(pveh == 462) return SendClientMessage(playerid, COLOR_LIGHT_BLUE, "You don't need to start a bike!"); if(idcar == 59 || idcar == 60) return SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Access denied!"); if(IsAtCarrental(playerid)) return SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Do you Think you can steal this car"); new playerveh = GetPlayerVehicleID(playerid); PutPlayerInVehicle(playerid, playerveh, 0); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "* %s tries to hotwire the car", sendername); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); SetTimerEx("StartingTheVehicle",7000,0,"i",playerid); GameTextForPlayer(playerid, "~w~Hotwiring The Vehicle...",3500,3); gEngine[playerid] = 1; } return 1; } |
if(!strcmp(cmd, "/hotwire", true))
{
if(PlayerInfo[playerid][pJob] != 5)
{
if(engineOn[GetPlayerVehicleID(playerid)]) return SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Engine already started!");
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Your key Please");
if(GetPlayerState(playerid) == PLAYER_STATE_PASSENGER) return SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Only the driver can do this!");
if(IsAtDealership(playerid)) return SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Do you Think you can steal this car");
if(pveh == 510) return SendClientMessage(playerid, COLOR_LIGHT_BLUE, "You don't need to start a bike!");
if(pveh == 462) return SendClientMessage(playerid, COLOR_LIGHT_BLUE, "You don't need to start a bike!");
if(idcar == 59 || idcar == 60) return SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Access denied!");
if(IsAtCarrental(playerid)) return SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Do you Think you can steal this car");
new playerveh = GetPlayerVehicleID(playerid);
PutPlayerInVehicle(playerid, playerveh, 0);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s tries to hotwire the car", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
SetTimerEx("StartingTheVehicle",7000,0,"i",playerid);
GameTextForPlayer(playerid, "~w~Hotwiring The Vehicle...",3500,3);
gEngine[playerid] = 1;
return 1;
}
PHP код:
|
C:\Documents and Settings\Andero\Desktop\RPEEE\gamemodes\gtarp.pwn(1723) : error 004: function "SafeGivePlayerMoney" is not implemented C:\Documents and Settings\Andero\Desktop\RPEEE\gamemodes\gtarp.pwn(1752) : error 004: function "SafeGivePlayerMoney" is not implemented C:\Documents and Settings\Andero\Desktop\RPEEE\gamemodes\gtarp.pwn(1788) : error 004: function "SafeResetPlayerWeapons" is not implemented C:\Documents and Settings\Andero\Desktop\RPEEE\gamemodes\gtarp.pwn(1789) : error 004: function "SafeGivePlayerWeapon" is not implemented C:\Documents and Settings\Andero\Desktop\RPEEE\gamemodes\gtarp.pwn(1816) : error 004: function "SafeResetPlayerWeapons" is not implemented C:\Documents and Settings\Andero\Desktop\RPEEE\gamemodes\gtarp.pwn(2287) : error 004: function "PlayerToPoint" is not implemented C:\Documents and Settings\Andero\Desktop\RPEEE\gamemodes\gtarp.pwn(2298) : error 004: function "PlayerToPoint" is not implemented C:\Documents and Settings\Andero\Desktop\RPEEE\gamemodes\gtarp.pwn(2310) : error 004: function "PlayerToPoint" is not implemented C:\Documents and Settings\Andero\Desktop\RPEEE\gamemodes\gtarp.pwn(2314) : error 004: function "PlayerToPoint" is not implemented C:\Documents and Settings\Andero\Desktop\RPEEE\gamemodes\gtarp.pwn(2326) : error 004: function "PlayerToPoint" is not implemented C:\Documents and Settings\Andero\Desktop\RPEEE\gamemodes\gtarp.pwn(2330) : error 004: function "PlayerToPoint" is not implemented C:\Documents and Settings\Andero\Desktop\RPEEE\gamemodes\gtarp.pwn(2334) : error 004: function "PlayerToPoint" is not implemented C:\Documents and Settings\Andero\Desktop\RPEEE\gamemodes\gtarp.pwn(2338) : error 004: function "PlayerToPoint" is not implemented C:\Documents and Settings\Andero\Desktop\RPEEE\gamemodes\gtarp.pwn(2342) : error 004: function "PlayerToPoint" is not implemented C:\Documents and Settings\Andero\Desktop\RPEEE\gamemodes\gtarp.pwn(2346) : error 004: function "PlayerToPoint" is not implemented C:\Documents and Settings\Andero\Desktop\RPEEE\gamemodes\gtarp.pwn(2350) : error 004: function "PlayerToPoint" is not implemented C:\Documents and Settings\Andero\Desktop\RPEEE\gamemodes\gtarp.pwn(2354) : error 004: function "PlayerToPoint" is not implemented C:\Documents and Settings\Andero\Desktop\RPEEE\gamemodes\gtarp.pwn(2366) : error 004: function "PlayerToPoint" is not implemented C:\Documents and Settings\Andero\Desktop\RPEEE\gamemodes\gtarp.pwn(2370) : error 004: function "PlayerToPoint" is not implemented C:\Documents and Settings\Andero\Desktop\RPEEE\gamemodes\gtarp.pwn(2374) : error 004: function "PlayerToPoint" is not implemented C:\Documents and Settings\Andero\Desktop\RPEEE\gamemodes\gtarp.pwn(2378) : error 004: function "PlayerToPoint" is not implemented C:\Documents and Settings\Andero\Desktop\RPEEE\gamemodes\gtarp.pwn(2382) : error 004: function "PlayerToPoint" is not implemented C:\Documents and Settings\Andero\Desktop\RPEEE\gamemodes\gtarp.pwn(2394) : error 004: function "PlayerToPoint" is not implemented C:\Documents and Settings\Andero\Desktop\RPEEE\gamemodes\gtarp.pwn(2398) : error 004: function "PlayerToPoint" is not implemented C:\Documents and Settings\Andero\Desktop\RPEEE\gamemodes\gtarp.pwn(2402) : error 004: function "PlayerToPoint" is not implemented C:\Documents and Settings\Andero\Desktop\RPEEE\gamemodes\gtarp.pwn(2414) : error 004: function "PlayerToPoint" is not implemented Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 26 Errors.
You forgot to put a bracket. Try this:
Код:
if(!strcmp(cmd, "/hotwire", true)) { if(PlayerInfo[playerid][pJob] == 5) { if(engineOn[GetPlayerVehicleID(playerid)]) return SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Engine already started!"); if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Your key Please"); if(GetPlayerState(playerid) == PLAYER_STATE_PASSENGER) return SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Only the driver can do this!"); if(IsAtDealership(playerid)) return SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Do you Think you can steal this car"); if(pveh == 510) return SendClientMessage(playerid, COLOR_LIGHT_BLUE, "You don't need to start a bike!"); if(pveh == 462) return SendClientMessage(playerid, COLOR_LIGHT_BLUE, "You don't need to start a bike!"); if(idcar == 59 || idcar == 60) return SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Access denied!"); if(IsAtCarrental(playerid)) return SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Do you Think you can steal this car"); new playerveh = GetPlayerVehicleID(playerid); PutPlayerInVehicle(playerid, playerveh, 0); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "* %s tries to hotwire the car", sendername); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); SetTimerEx("StartingTheVehicle",7000,0,"i",playerid); GameTextForPlayer(playerid, "~w~Hotwiring The Vehicle...",3500,3); gEngine[playerid] = 1; } return 1; } |
{ if(PlayerInfo[playerid][pJob] == 5) { <------
if(!strcmp(cmd, "/hotwire", true)) { if(PlayerInfo[playerid][pJob] != 5) return SendClientMessage(playerid,-1,"You are not car jacker"); if(engineOn[GetPlayerVehicleID(playerid)]) return SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Engine already started!"); if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Your key Please"); if(GetPlayerState(playerid) == PLAYER_STATE_PASSENGER) return SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Only the driver can do this!"); if(IsAtDealership(playerid)) return SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Do you Think you can steal this car"); if(pveh == 510) return SendClientMessage(playerid, COLOR_LIGHT_BLUE, "You don't need to start a bike!"); if(pveh == 462) return SendClientMessage(playerid, COLOR_LIGHT_BLUE, "You don't need to start a bike!"); if(idcar == 59 || idcar == 60) return SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Access denied!"); if(IsAtCarrental(playerid)) return SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Do you Think you can steal this car"); new playerveh = GetPlayerVehicleID(playerid); PutPlayerInVehicle(playerid, playerveh, 0); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "* %s tries to hotwire the car", sendername); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); SetTimerEx("StartingTheVehicle",7000,0,"i",playerid); GameTextForPlayer(playerid, "~w~Hotwiring The Vehicle...",3500,3); gEngine[playerid] = 1; return 1; }