C:\Documents and Settings\RockingCamman\Desktop\RealityC Roleplay\gamemodes\RealityC.pwn(607) : error 004: function "ProxDetector" is not implemented
C:\Documents and Settings\RockingCamman\Desktop\RealityC Roleplay\gamemodes\RealityC.pwn(609) : error 010: invalid function or declaration
C:\Documents and Settings\RockingCamman\Desktop\RealityC Roleplay\gamemodes\RealityC.pwn(687) : error 004: function "ProxDetector" is not implemented
C:\Documents and Settings\RockingCamman\Desktop\RealityC Roleplay\gamemodes\RealityC.pwn(743) : error 004: function "ProxDetector" is not implemented
C:\Documents and Settings\RockingCamman\Desktop\RealityC Roleplay\gamemodes\RealityC.pwn(754) : error 004: function "ProxDetector" is not implemented
C:\Documents and Settings\RockingCamman\Desktop\RealityC Roleplay\gamemodes\RealityC.pwn(829) : error 004: function "ProxDetector" is not implemented
C:\Documents and Settings\RockingCamman\Desktop\RealityC Roleplay\gamemodes\RealityC.pwn(852) : error 004: function "ProxDetector" is not implemented
C:\Documents and Settings\RockingCamman\Desktop\RealityC Roleplay\gamemodes\RealityC.pwn(854) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\RockingCamman\Desktop\RealityC Roleplay\gamemodes\RealityC.pwn(858) : error 029: invalid expression, assumed zero
C:\Documents and Settings\RockingCamman\Desktop\RealityC Roleplay\gamemodes\RealityC.pwn(858) : error 017: undefined symbol "cmd_uncuff"
C:\Documents and Settings\RockingCamman\Desktop\RealityC Roleplay\gamemodes\RealityC.pwn(858) : error 029: invalid expression, assumed zero
C:\Documents and Settings\RockingCamman\Desktop\RealityC Roleplay\gamemodes\RealityC.pwn(858) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
12 Errors.
// Line 601-610
public OnPlayerText(playerid, text[])
{
new sendername[MAX_PLAYER_NAME];
new string[256];
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "%s says: %s", sendername, text);
ProxDetector(20.0, playerid, string,COLOR_GREY);
}
return 0;
}
// 680-689
COMMAND:achat(playerid, params)
{
if(PInfo[playerid][ADMINLEVEL] == 0) return SendClientMessage(playerid, COLOR_RED,"ERROR: You are not an administrator");
new sendername[MAX_PLAYER_NAME];
new string[128];
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "ADMIN CHAT: %s %s", sendername, params);
ProxDetector(999999999999.0, playerid, string, COLOR_GREEN);
return 1;
}
COMMAND:911(playerid, params)
{
if(PInfo[playerid][FACTION] == 1 && PInfo[playerid][FACTION] == 2) return SendClientMessage(playerid, COLOR_RED,"ERROR: You are not part of the Sheriff's Department");
new sendername[MAX_PLAYER_NAME];
new string[128];
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "Channel 911: %s %s", sendername, string);
ProxDetector(999999999999.0, playerid, string, COLOR_GREY);
return 1;
}
COMMAND:411(playerid, params)
{
if(PInfo[playerid][JOB] == 1) return SendClientMessage(playerid, COLOR_RED,"ERROR: You are not part of the Mechanic job");
new sendername[MAX_PLAYER_NAME];
new string[128];
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "Channel 911: %s %s", sendername, string);
ProxDetector(999999999999.0, playerid, string, COLOR_GREY);
return 1;
}
//====================================================COP/FBI========================================================================
COMMAND:duty(playerid, params[])
{
if(IsPlayerInRangeOfPoint(playerid,30,254.7737,76.4674,1003.6406))
{
SendClientMessage(playerid, COLOR_GREY,"You have taken your badge and nightstick out of your locker");
GivePlayerWeapon(playerid, 24, 500);
GivePlayerWeapon(playerid, 3, 1);
GivePlayerWeapon(playerid, 29, 1000);
Cop[playerid][COPDUTY] = 1;
}
return 1;
}
COMMAND:offduty(playerid, params[])
{
if(Cop[playerid][COPDUTY] == 1)
{
SendClientMessage(playerid, COLOR_GREY,"You have placed your badge and nightstick out of your locker");
ResetPlayerWeapons(playerid);
Cop[playerid][COPDUTY] = 0;
}
return 1;
}
COMMAND:fbiduty(playerid, params[])
{
if(IsPlayerInRangeOfPoint(playerid,30,-316.0088,1510.4666,75.5625))
{
SendClientMessage(playerid, COLOR_GREY,"You have taken your badge and nightstick out of your locker");
GivePlayerWeapon(playerid, 24, 500);
GivePlayerWeapon(playerid, 3, 1);
GivePlayerWeapon(playerid, 29, 1000);
FBI[playerid][FBIDUTY] = 1;
}
return 1;
}
COMMAND:fbioffduty(playerid, params[])
{
if(FBI[playerid][FBIDUTY] == 1)
{
SendClientMessage(playerid, COLOR_GREY,"You have placed your badge and nightstick out of your locker");
ResetPlayerWeapons(playerid);
FBI[playerid][FBIDUTY] = 0;
}
return 1;
}
COMMAND:go(playerid, params)
{
if(IsPlayerInRangeOfPoint(playerid,10,-302.55325317,1509.01599121,154.26553344))
{
if(PInfo[playerid][FACTION] == 0) return SendClientMessage(playerid, COLOR_RED,"You cannot pass through, wait for another FBI Agent to come.");
}
else if(PInfo[playerid][FACTION] == 1 && PInfo[playerid][FACTION] == 2)
SetPlayerPos(playerid, -302.3315,1513.1227,75.3594);
return 1;
}
//==============================================================================================================================
//=================================================LAW ENFORCEMENT COMMANDS=====================================================
COMMAND:m(playerid, params[])
{
if(Cop[playerid][COPDUTY] == 1 && FBI[playerid][FBIDUTY] == 1)
{
new sendername[MAX_PLAYER_NAME];
new string[512];
GetPlayerName(playerid, sendername, sizeof(sendername));
if(isnull(params)) return SendClientMessage(playerid, 0xFFFF00AA, "Use /m ");
format(string, sizeof(string), "MEGAPHONE: %s< %s", sendername, params);
ProxDetector(40.0, playerid, string, COLOR_YELLOW);
}
return 1;
}
COMMAND:cuff(playerid, params[])
{
if(Cop[playerid][COPDUTY] == 1 && FBI[playerid][FBIDUTY] == 1)
{
new id;
if(sscanf(params, "u", id))
{
if(IsPlayerConnected(id))
{
new string[64];
new name[MAX_PLAYER_NAME], PlayerName[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
GetPlayerName(id, PlayerName, sizeof(PlayerName));
format(string, sizeof(string), "You have been cuffed by %s", name);
SendClientMessage(id, 0x0259EAAA, string);
format(string, sizeof(string), "%s has grabbed his cuffs and put them on %s", name, PlayerName);
TogglePlayerControllable(id, 0);
Suspect[playerid][CUFF] = 1;
ProxDetector(10.0, playerid, string, COLOR_PURPLE);
}
return 1;
}
}
COMMAND:uncuff(playerid, params[])
{
if(Cop[playerid][COPDUTY] == 1 && FBI[playerid][FBIDUTY] == 1)
{
new id;
if(sscanf(params, "u", id))
{
if(IsPlayerConnected(id))
{
new string[64];
new name[MAX_PLAYER_NAME], PlayerName[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
GetPlayerName(id, PlayerName, sizeof(PlayerName));
format(string, sizeof(string), "You have been uncuffed by %s", name);
SendClientMessage(id, 0x0259EAAA, string);
format(string, sizeof(string), "%s has grabbed a key and unlocks the handcuffs that are on %s", name, PlayerName);
TogglePlayerControllable(id, 0);
Suspect[playerid][CUFF] = 1;
ProxDetector(10.0, playerid, string, COLOR_PURPLE);
}
return 1;
}
}
COMMAND:tazer(playerid, params[])
{
if(Cop[playerid][COPDUTY] == 1 && FBI[playerid][FBIDUTY] == 1)
{
new id;
if(sscanf(params, "u", id))
{
if(IsPlayerConnected(id))
{
new string[64];
new name[MAX_PLAYER_NAME], PlayerName[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
GetPlayerName(id, PlayerName, sizeof(PlayerName));
format(string, sizeof(string), "%s has unholster his tazer", name);
SendClientMessage(id, 0xFFFF00AA, string);
format(string, sizeof(string), "%s has holster his Desert Eagle and unholsters his/her tazer", name);
LAW[playerid][TAZE] = 1;
ProxDetector(10.0, playerid, string, COLOR_PURPLE);
}
return 1;
}
COMMAND:taze(playerid, params[])
{
if(Cop[playerid][COPDUTY] == 1 && FBI[playerid][FBIDUTY] == 1)
{
new id;
if(sscanf(params, "u", id))
{
if(IsPlayerConnected(id))
{
new string[64];
new name[MAX_PLAYER_NAME], PlayerName[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
GetPlayerName(id, PlayerName, sizeof(PlayerName));
format(string, sizeof(string), "You have been tazed by %s", name);
SendClientMessage(id, 0x0259EAAA, string);
format(string, sizeof(string), "%s has succesfully tazed %s", name, PlayerName);
TogglePlayerControllable(id, 0);
Suspect[playerid][TAZE] = 1;
ProxDetector(10.0, playerid, string, COLOR_PURPLE);
}
return 1;
}
COMMAND:untaze(playerid, params[])
{
if(Cop[playerid][COPDUTY] == 1 && FBI[playerid][FBIDUTY] == 1)
{
new id;
if(sscanf(params, "u", id))
{
if(IsPlayerConnected(id))
{
new name[MAX_PLAYER_NAME], PlayerName[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
GetPlayerName(id, PlayerName, sizeof(PlayerName));
TogglePlayerControllable(id, 1);
Suspect[playerid][TAZE] = 0;
return 1;
}
/*}
else return SendClientMessage(playerid, 0x0259EAAA, "Player is not connected");
}
else return SendClientMessage(playerid, 0x0259EAAA, "USAGE: /untaze [PlayerId/PartOfName]");
}
else return SendClientMessage(playerid, 0x0259EAAA, "You are not part of any Law Enforcement");
}
/////////////////////////////////////////////////END OF LAW ENFORCEMEN COMMANDS////////////////////////////////
// Line 601-610
public OnPlayerText(playerid, text[])
{
new sendername[MAX_PLAYER_NAME];
new string[128];
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "%s says: %s", sendername, text);
ProxDetector(20.0, playerid, string, COLOR_GREY);
return 0;
}
pawn Код:
|
C:\Documents and Settings\RockingCamman\Desktop\RealityC Roleplay\gamemodes\RealityC.pwn(607) : error 004: function "ProxDetector" is not implemented
C:\Documents and Settings\RockingCamman\Desktop\RealityC Roleplay\gamemodes\RealityC.pwn(686) : error 004: function "ProxDetector" is not implemented
C:\Documents and Settings\RockingCamman\Desktop\RealityC Roleplay\gamemodes\RealityC.pwn(742) : error 004: function "ProxDetector" is not implemented
C:\Documents and Settings\RockingCamman\Desktop\RealityC Roleplay\gamemodes\RealityC.pwn(753) : error 004: function "ProxDetector" is not implemented
C:\Documents and Settings\RockingCamman\Desktop\RealityC Roleplay\gamemodes\RealityC.pwn(826) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\RockingCamman\Desktop\RealityC Roleplay\gamemodes\RealityC.pwn(828) : error 004: function "ProxDetector" is not implemented
C:\Documents and Settings\RockingCamman\Desktop\RealityC Roleplay\gamemodes\RealityC.pwn(829) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\RockingCamman\Desktop\RealityC Roleplay\gamemodes\RealityC.pwn(832) : error 029: invalid expression, assumed zero
C:\Documents and Settings\RockingCamman\Desktop\RealityC Roleplay\gamemodes\RealityC.pwn(832) : error 017: undefined symbol "cmd_cuff"
C:\Documents and Settings\RockingCamman\Desktop\RealityC Roleplay\gamemodes\RealityC.pwn(832) : error 029: invalid expression, assumed zero
C:\Documents and Settings\RockingCamman\Desktop\RealityC Roleplay\gamemodes\RealityC.pwn(832) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
11 Errors.
public ProxDetector(Float:radi, playerid, string[],col1)
{
if(IsPlayerConnected(playerid))
{
new Float:posx, Float:posy, Float:posz;
new Float:oldposx, Float:oldposy, Float:oldposz;
new Float:tempposx, Float:tempposy, Float:tempposz;
GetPlayerPos(playerid, oldposx, oldposy, oldposz);
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && (GetPlayerVirtualWorld(playerid) == GetPlayerVirtualWorld(i)))
{
GetPlayerPos(i, posx, posy, posz);
tempposx = (oldposx -posx);
tempposy = (oldposy -posy);
tempposz = (oldposz -posz);
if (((tempposx < radi/16) && (tempposx > -radi/16)) && ((tempposy < radi/16) && (tempposy > -radi/16)) && ((tempposz < radi/16) && (tempposz > -radi/16)))
{
SendClientMessage(i, col1, string);
}
}
else
{
SendClientMessage(i, col1, string);
}
}
}
return 1;
}
MISSING BRACKET: The { bracket on line 681 does not have a pair!
MISSING BRACKET: The { bracket on line 853 does not have a pair! MISSING BRACKET: The { bracket on line 863 does not have a pair! MISSING BRACKET: The { bracket on line 866 does not have a pair! MISSING BRACKET: The { bracket on line 868 does not have a pair! MISSING BRACKET: The { bracket on line 871 does not have a pair! MISSING BRACKET: The { bracket on line 885 does not have a pair! MISSING BRACKET: The { bracket on line 888 does not have a pair! MISSING BRACKET: The { bracket on line 890 does not have a pair! MISSING BRACKET: The { bracket on line 893 does not have a pair! MISSING BRACKET: The { bracket on line 907 does not have a pair! MISSING BRACKET: The { bracket on line 910 does not have a pair! MISSING BRACKET: The { bracket on line 912 does not have a pair! MISSING BRACKET: The { bracket on line 915 does not have a pair! MISSING BRACKET: The { bracket on line 928 does not have a pair! MISSING BRACKET: The { bracket on line 931 does not have a pair! MISSING BRACKET: The { bracket on line 933 does not have a pair! MISSING BRACKET: The { bracket on line 936 does not have a pair! MISSING BRACKET: The { bracket on line 953 does not have a pair! MISSING BRACKET: The { bracket on line 955 does not have a pair! MISSING BRACKET: The { bracket on line 958 does not have a pair! Result: Opening angle brackets ({): 177 Closing angle brackets (}): 156 21 angle brackets without pair! Fix it! this makes no sense to me. |
// Line 601-610
public OnPlayerText(playerid, text[])
{
new sendername[MAX_PLAYER_NAME];
new string[256];
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "%s says: %s", sendername, text);
ProxDetector(20.0, playerid, string,COLOR_GREY);
return 0;
}
COMMAND:uncuff(playerid, params[])
{
if(Cop[playerid][COPDUTY] == 1 && FBI[playerid][FBIDUTY] == 1)
{
new id;
if(sscanf(params, "u", id))
{
if(IsPlayerConnected(id))
{
new string[64];
new name[MAX_PLAYER_NAME], PlayerName[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
GetPlayerName(id, PlayerName, sizeof(PlayerName));
format(string, sizeof(string), "You have been uncuffed by %s", name);
SendClientMessage(id, 0x0259EAAA, string);
format(string, sizeof(string), "%s has grabbed a key and unlocks the handcuffs that are on %s", name, PlayerName);
TogglePlayerControllable(id, 0);
Suspect[playerid][CUFF] = 1;
ProxDetector(10.0, playerid, string, COLOR_PURPLE);
}
return 1;
}
}
}
COMMAND:cuff(playerid, params[])
{
if(Cop[playerid][COPDUTY] == 1 && FBI[playerid][FBIDUTY] == 1)
{
new id;
if(sscanf(params, "u", id))
{
if(IsPlayerConnected(id))
{
new string[64];
new name[MAX_PLAYER_NAME], PlayerName[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
GetPlayerName(id, PlayerName, sizeof(PlayerName));
format(string, sizeof(string), "You have been cuffed by %s", name);
SendClientMessage(id, 0x0259EAAA, string);
format(string, sizeof(string), "%s has grabbed his cuffs and put them on %s", name, PlayerName);
TogglePlayerControllable(id, 0);
Suspect[playerid][CUFF] = 1;
ProxDetector(10.0, playerid, string, COLOR_PURPLE);
}
return 1;
}
}
}
COMMAND:tazer(playerid, params[])
{
if(Cop[playerid][COPDUTY] == 1 && FBI[playerid][FBIDUTY] == 1)
{
new id;
if(sscanf(params, "u", id))
{
if(IsPlayerConnected(id))
{
new string[64];
new name[MAX_PLAYER_NAME], PlayerName[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
GetPlayerName(id, PlayerName, sizeof(PlayerName));
format(string, sizeof(string), "%s has unholster his tazer", name);
SendClientMessage(id, 0xFFFF00AA, string);
format(string, sizeof(string), "%s has holster his Desert Eagle and unholsters his/her tazer", name);
LAW[playerid][TAZE] = 1;
ProxDetector(10.0, playerid, string, COLOR_PURPLE);
}
return 1;
}
}
}
COMMAND:taze(playerid, params[])
{
if(Cop[playerid][COPDUTY] == 1 && FBI[playerid][FBIDUTY] == 1)
{
new id;
if(sscanf(params, "u", id))
{
if(IsPlayerConnected(id))
{
new string[64];
new name[MAX_PLAYER_NAME], PlayerName[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
GetPlayerName(id, PlayerName, sizeof(PlayerName));
format(string, sizeof(string), "You have been tazed by %s", name);
SendClientMessage(id, 0x0259EAAA, string);
format(string, sizeof(string), "%s has succesfully tazed %s", name, PlayerName);
TogglePlayerControllable(id, 0);
Suspect[playerid][TAZE] = 1;
ProxDetector(10.0, playerid, string, COLOR_PURPLE);
}
return 1;
}
}
}
COMMAND:untaze(playerid, params[])
{
if(Cop[playerid][COPDUTY] == 1 && FBI[playerid][FBIDUTY] == 1)
{
new id;
if(sscanf(params, "u", id))
{
if(IsPlayerConnected(id))
{
new name[MAX_PLAYER_NAME], PlayerName[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
GetPlayerName(id, PlayerName, sizeof(PlayerName));
TogglePlayerControllable(id, 1);
Suspect[playerid][TAZE] = 0;
return 1;
}
}
}
}
MISSING BRACKET: The } bracket on line 833 does not have a pair!
MISSING BRACKET: The } bracket on line 834 does not have a pair!
MISSING BRACKET: The } bracket on line 847 does not have a pair!
MISSING BRACKET: The } bracket on line 848 does not have a pair!
MISSING BRACKET: The } bracket on line 860 does not have a pair!
MISSING BRACKET: The } bracket on line 861 does not have a pair!
MISSING BRACKET: The } bracket on line 888 does not have a pair!
MISSING BRACKET: The } bracket on line 889 does not have a pair!
C:\Documents and Settings\RockingCamman\Desktop\RealityC Roleplay\gamemodes\RealityC.pwn(701) : warning 225: unreachable code
C:\Documents and Settings\RockingCamman\Desktop\RealityC Roleplay\gamemodes\RealityC.pwn(701) : error 029: invalid expression, assumed zero
C:\Documents and Settings\RockingCamman\Desktop\RealityC Roleplay\gamemodes\RealityC.pwn(701) : error 017: undefined symbol "cmd_level1"
C:\Documents and Settings\RockingCamman\Desktop\RealityC Roleplay\gamemodes\RealityC.pwn(701) : error 029: invalid expression, assumed zero
C:\Documents and Settings\RockingCamman\Desktop\RealityC Roleplay\gamemodes\RealityC.pwn(701) : fatal error 107: too many error messages on one line
COMMAND:achat(playerid, params)
{
if(PInfo[playerid][ADMINLEVEL] == 0) return SendClientMessage(playerid, COLOR_RED,"ERROR: You are not an administrator");
{
new sendername[MAX_PLAYER_NAME];
new string[128];
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "ADMIN CHAT: %s %s", sendername, params);
ProxDetector(999999999999.0, playerid, string, COLOR_GREEN);
}
return 1;
}
COMMAND:ah(playerid, params)
{
if(PInfo[playerid][ADMINLEVEL] >= 1) return SendClientMessage(playerid, COLOR_RED,"ERROR: You need to be administrator level 1 to view this command");
{
SendClientMessage(playerid, COLOR_RED,"Administrator Help");
SendClientMessage(playerid, COLOR_RED,"List of admin commands: /level1, /level2, /level3, /level4, /level5, /level1337");
return 1;
}
COMMAND:level1(playerid, params)
{
if(PInfo[playerid][ADMINLEVEL] >= 1) return SendClientMessage(playerid, COLOR_RED,"ERROR: You need to be administrator level 1 to view this command");
{
SendClientMessage(playerid, COLOR_GREY,"/goto, /gethere");
return 1;
}
COMMAND:level2(playerid, params)
{
if(PInfo[playerid][ADMINLEVEL] >= 1) return SendClientMessage(playerid, COLOR_RED,"ERROR: You need to be administrator level 1 to view this command");
{
SendClientMessage(playerid, COLOR_GREY,"/goto, /gethere, /kick");
return 1;
}
COMMAND:level3(playerid, params)
{
if(PInfo[playerid][ADMINLEVEL] >= 3) return SendClientMessage(playerid, COLOR_RED,"ERROR: You need to be administrator level 1 to view this command");
{
SendClientMessage(playerid, COLOR_GREY,"/goto, /gethere, /kick, /weapcheck, ");
SendClientMessage(playerid, COLOR_GREY,"Not lots of comands are functional yet, sorry.");
return 1;
}
COMMAND:level4(playerid, params)
{
if(PInfo[playerid][ADMINLEVEL] >= 3) return SendClientMessage(playerid, COLOR_RED,"ERROR: You need to be administrator level 1 to view this command");
{
SendClientMessage(playerid, COLOR_GREY,"/goto, /gethere, /kick, /ban");
return 1;
}
COMMAND:level5(playerid, params)
{
if(PInfo[playerid][ADMINLEVEL] >= 3) return SendClientMessage(playerid, COLOR_RED,"ERROR: You need to be administrator level 1 to view this command");
{
SendClientMessage(playerid, COLOR_GREY,"/goto, /gethere, /kick, /ban, /setleader");
return 1;
}