D:\games\Скинове О.О\Без гангове\pawno\include\DOF2.inc(225) : error 021: symbol already defined: "FileChanged" D:\games\Скинове О.О\Без гангове\pawno\include\DOF2.inc(1827) : warning 201: redefinition of constant/macro (symbol "dUser(%0).(") D:\games\Скинове О.О\Без гангове\pawno\include\DOF2.inc(1828) : warning 201: redefinition of constant/macro (symbol "dUserSet(%0).(") D:\games\Скинове О.О\Без гангове\pawno\include\DOF2.inc(1829) : warning 201: redefinition of constant/macro (symbol "dUserINT(%0).(") D:\games\Скинове О.О\Без гангове\pawno\include\DOF2.inc(1830) : warning 201: redefinition of constant/macro (symbol "dUserSetINT(%0).(") D:\games\Скинове О.О\Без гангове\pawno\include\DOF2.inc(1831) : warning 201: redefinition of constant/macro (symbol "dUserFLOAT(%0).(") D:\games\Скинове О.О\Без гангове\pawno\include\DOF2.inc(1832) : warning 201: redefinition of constant/macro (symbol "dUserSetFLOAT(%0).(") D:\games\Скинове О.О\Без гангове\pawno\include\DOF2.inc(1833) : warning 201: redefinition of constant/macro (symbol "udb_Create(%0,%1)") D:\games\Скинове О.О\Без гангове\pawno\include\DOF2.inc(1834) : warning 201: redefinition of constant/macro (symbol "udb_RenameUser(%0,%1)") D:\games\Скинове О.О\Без гангове\pawno\include\DOF2.inc(1835) : warning 201: redefinition of constant/macro (symbol "udb_Exists(%0)") D:\games\Скинове О.О\Без гангове\pawno\include\DOF2.inc(1836) : warning 201: redefinition of constant/macro (symbol "udb_Remove(%0)") D:\games\Скинове О.О\Без гангове\pawno\include\DOF2.inc(1837) : warning 201: redefinition of constant/macro (symbol "udb_CheckLogin(%0,%1)") D:\games\Скинове О.О\Без гангове\pawno\include\DOF2.inc(1847) : warning 201: redefinition of constant/macro (symbol "dini_Exists") D:\games\Скинове О.О\Без гангове\pawno\include\DOF2.inc(1848) : warning 201: redefinition of constant/macro (symbol "dini_Remove") D:\games\Скинове О.О\Без гангове\pawno\include\DOF2.inc(1849) : warning 201: redefinition of constant/macro (symbol "dini_Create") D:\games\Скинове О.О\Без гангове\pawno\include\DOF2.inc(1850) : warning 201: redefinition of constant/macro (symbol "dini_Set") D:\games\Скинове О.О\Без гангове\pawno\include\DOF2.inc(1851) : warning 201: redefinition of constant/macro (symbol "dini_Get") D:\games\Скинове О.О\Без гангове\pawno\include\DOF2.inc(1852) : warning 201: redefinition of constant/macro (symbol "dini_IntSet") D:\games\Скинове О.О\Без гангове\pawno\include\DOF2.inc(1853) : warning 201: redefinition of constant/macro (symbol "dini_Int") D:\games\Скинове О.О\Без гангове\pawno\include\DOF2.inc(1854) : warning 201: redefinition of constant/macro (symbol "dini_BoolSet") D:\games\Скинове О.О\Без гангове\pawno\include\DOF2.inc(1855) : warning 201: redefinition of constant/macro (symbol "dini_Bool") D:\games\Скинове О.О\Без гангове\pawno\include\DOF2.inc(1856) : warning 201: redefinition of constant/macro (symbol "dini_FloatSet") D:\games\Скинове О.О\Без гангове\pawno\include\DOF2.inc(1857) : warning 201: redefinition of constant/macro (symbol "dini_Float") D:\games\Скинове О.О\Без гангове\pawno\include\DOF2.inc(1858) : warning 201: redefinition of constant/macro (symbol "dini_Unset") D:\games\Скинове О.О\Без гангове\pawno\include\DOF2.inc(1859) : warning 201: redefinition of constant/macro (symbol "dini_Isset") C:\Users\ники\Desktop\gangwars.pwn(3243) : error 021: symbol already defined: "ID" C:\Users\ники\Desktop\gangwars.pwn(5565) : warning 219: local variable "X" shadows a variable at a preceding level C:\Users\ники\Desktop\gangwars.pwn(5565) : warning 219: local variable "Y" shadows a variable at a preceding level C:\Users\ники\Desktop\gangwars.pwn(5565) : warning 219: local variable "Z" shadows a variable at a preceding level C:\Users\ники\Desktop\gangwars.pwn(5566) : error 035: argument type mismatch (argument 2) C:\Users\ники\Desktop\gangwars.pwn(5567) : warning 213: tag mismatch C:\Users\ники\Desktop\gangwars.pwn(5567) : warning 213: tag mismatch C:\Users\ники\Desktop\gangwars.pwn(5567) : warning 213: tag mismatch C:\Users\ники\Desktop\gangwars.pwn(5567) : warning 213: tag mismatch C:\Users\ники\Desktop\gangwars.pwn(5565) : warning 203: symbol is never used: "Z" C:\Users\ники\Desktop\gangwars.pwn(5565) : warning 203: symbol is never used: "Y" C:\Users\ники\Desktop\gangwars.pwn(5565) : warning 203: symbol is never used: "X" C:\Users\ники\Desktop\gangwars.pwn(6298) : warning 219: local variable "X" shadows a variable at a preceding level C:\Users\ники\Desktop\gangwars.pwn(6298) : warning 219: local variable "Y" shadows a variable at a preceding level C:\Users\ники\Desktop\gangwars.pwn(6298) : warning 219: local variable "Z" shadows a variable at a preceding level C:\Users\ники\Desktop\gangwars.pwn(6301) : error 035: argument type mismatch (argument 2) C:\Users\ники\Desktop\gangwars.pwn(6303) : warning 213: tag mismatch C:\Users\ники\Desktop\gangwars.pwn(6303) : warning 213: tag mismatch C:\Users\ники\Desktop\gangwars.pwn(6303) : warning 213: tag mismatch C:\Users\ники\Desktop\gangwars.pwn(6303) : warning 213: tag mismatch C:\Users\ники\Desktop\gangwars.pwn(6303) : warning 213: tag mismatch C:\Users\ники\Desktop\gangwars.pwn(6303) : warning 213: tag mismatch C:\Users\ники\Desktop\gangwars.pwn(6303) : warning 205: redundant code: constant expression is zero C:\Users\ники\Desktop\gangwars.pwn(6309) : warning 213: tag mismatch C:\Users\ники\Desktop\gangwars.pwn(6310) : warning 213: tag mismatch C:\Users\ники\Desktop\gangwars.pwn(6311) : warning 213: tag mismatch C:\Users\ники\Desktop\gangwars.pwn(6316) : error 035: argument type mismatch (argument 2) C:\Users\ники\Desktop\gangwars.pwn(6318) : warning 213: tag mismatch C:\Users\ники\Desktop\gangwars.pwn(6318) : warning 213: tag mismatch C:\Users\ники\Desktop\gangwars.pwn(6318) : warning 213: tag mismatch C:\Users\ники\Desktop\gangwars.pwn(6298) : warning 203: symbol is never used: "Z" C:\Users\ники\Desktop\gangwars.pwn(6298) : warning 203: symbol is never used: "Y" C:\Users\ники\Desktop\gangwars.pwn(6298) : warning 203: symbol is never used: "X" C:\Users\ники\Desktop\gangwars.pwn(6486) : warning 202: number of arguments does not match definition C:\Users\ники\Desktop\gangwars.pwn(6573) : warning 213: tag mismatch C:\Users\ники\Desktop\gangwars.pwn(7524) : warning 219: local variable "X" shadows a variable at a preceding level C:\Users\ники\Desktop\gangwars.pwn(7524) : warning 219: local variable "Y" shadows a variable at a preceding level C:\Users\ники\Desktop\gangwars.pwn(7524) : warning 219: local variable "Z" shadows a variable at a preceding level C:\Users\ники\Desktop\gangwars.pwn(7555) : error 035: argument type mismatch (argument 2) C:\Users\ники\Desktop\gangwars.pwn(7557) : warning 213: tag mismatch C:\Users\ники\Desktop\gangwars.pwn(7557) : warning 213: tag mismatch C:\Users\ники\Desktop\gangwars.pwn(7557) : warning 213: tag mismatch C:\Users\ники\Desktop\gangwars.pwn(7524) : warning 203: symbol is never used: "Z" C:\Users\ники\Desktop\gangwars.pwn(7524) : warning 203: symbol is never used: "Y" C:\Users\ники\Desktop\gangwars.pwn(7524) : warning 203: symbol is never used: "X" C:\Users\ники\Desktop\gangwars.pwn(7705) : error 029: invalid expression, assumed zero C:\Users\ники\Desktop\gangwars.pwn(7705) : error 017: undefined symbol "cmd_evento" C:\Users\ники\Desktop\gangwars.pwn(7705) : error 029: invalid expression, assumed zero C:\Users\ники\Desktop\gangwars.pwn(7705) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 10 Errors.
Sig Hansen what is when he wan the filterscript in the mode! I think he has his reasons
|
if(strcmp(cmd, "/eventhelp", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] >= 4)
{
SendClientMessage(playerid, COLOR_WHITE,"EVENT HELP: type a command for more information");
SendClientMessage(playerid, COLOR_WHITE,"COMMANDS: /seteventpos /seteventinfo /startevent /lockevent /endevent /announceevent /quitevent");
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " You are not authorized to use that command !");
}
}
return 1;
}
if(strcmp(cmd, "/seteventpos", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] >= 4)
{
if(ActiveEvent == 0)
{
GetPlayerPos(playerid, EventX, EventY, EventZ);
EventInt = GetPlayerInterior(playerid);
EventWorld = GetPlayerVirtualWorld(playerid);
SendClientMessage(playerid, COLOR_WHITE, "You have sucessfully adjusted the event position.");
}
else
{
SendClientMessage(playerid, COLOR_GREY, " An event is already active, use /endevent to finish the current event !");
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " You are not authorized to use that command !");
}
}
return 1;
}
if(strcmp(cmd, "/seteventinfo", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] >= 4)
{
if(ActiveEvent == 0)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /seteventinfo [name]");
SendClientMessage(playerid, COLOR_GRAD1, "Available names: Jointext, Health, Armor, Gun1, Gun2, Gun3, Gun4, Gun5");
return 1;
}
if(strcmp(tmp,"jointext",true) == 0)
{
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[128];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /seteventinfo jointext [text]");
return 1;
}
format(EventText, sizeof(EventText), "%s", result);
SendClientMessage(playerid, COLOR_WHITE, "You have been set the event jointext to the following.");
GameTextForPlayer(playerid, EventText, 5000, 0);
EventJoinText = 1;
return 1;
}
if(strcmp(tmp,"health",true) == 0)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /seteventinfo [health] [amount]");
return 1;
}
new ehp = strvalEx(tmp);
if(ehp < 1 || ehp > 100) { SendClientMessage(playerid, COLOR_GREY, " Health can't be below 1 or above 100 !"); return 1; }
EventHP = ehp;
format(string, sizeof(string), "You have been set the event health to %d.", ehp);
SendClientMessage(playerid, COLOR_WHITE, string);
return 1;
}
if(strcmp(tmp,"armor",true) == 0)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /seteventinfo [armor] [amount]");
return 1;
}
new earmor = strvalEx(tmp);
if(earmor < 0 || earmor > 100) { SendClientMessage(playerid, COLOR_GREY, " Armor can't be below 0 or above 100 !"); return 1; }
EventArmour = earmor;
format(string, sizeof(string), "You have been set the event armor to %d.", earmor);
SendClientMessage(playerid, COLOR_WHITE, string);
return 1;
}
if(strcmp(tmp,"gun1",true) == 0)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /seteventinfo [gun1] [gunid]");
return 1;
}
new egun = strvalEx(tmp);
EventWeapon1 = egun;
format(string, sizeof(string), "You have been set the event gun1 to %d.", egun);
SendClientMessage(playerid, COLOR_WHITE, string);
return 1;
}
if(strcmp(tmp,"gun2",true) == 0)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /seteventinfo [gun2] [gunid]");
return 1;
}
new egun = strvalEx(tmp);
EventWeapon2 = egun;
format(string, sizeof(string), "You have been set the event gun2 to %d.", egun);
SendClientMessage(playerid, COLOR_WHITE, string);
return 1;
}
if(strcmp(tmp,"gun3",true) == 0)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /seteventinfo [gun3] [gunid]");
return 1;
}
new egun = strvalEx(tmp);
EventWeapon3 = egun;
format(string, sizeof(string), "You have been set the event gun3 to %d.", egun);
SendClientMessage(playerid, COLOR_WHITE, string);
return 1;
}
if(strcmp(tmp,"gun4",true) == 0)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /seteventinfo [gun4] [gunid]");
return 1;
}
new egun = strvalEx(tmp);
EventWeapon4 = egun;
format(string, sizeof(string), "You have been set the event gun4 to %d.", egun);
SendClientMessage(playerid, COLOR_WHITE, string);
return 1;
}
if(strcmp(tmp,"gun5",true) == 0)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /seteventinfo [gun5] [gunid]");
return 1;
}
new egun = strvalEx(tmp);
EventWeapon5 = egun;
format(string, sizeof(string), "You have been set the event gun5 to %d.", egun);
SendClientMessage(playerid, COLOR_WHITE, string);
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " An event is already active, use /endevent to finish the current event !");
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " You are not authorized to use that command !");
}
}
return 1;
}
if(strcmp(cmd, "/startevent", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] >= 4)
{
if(ActiveEvent == 0)
{
if(EventX == 0.0 && EventY == 0.0 && EventZ == 0.0)
{
SendClientMessage(playerid, COLOR_GREY, " The event spawn has not been set !");
return 1;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
SendClientMessage(playerid, COLOR_WHITE, "You have started an event, use /announceevent to announce it to the server.");
ActiveEvent = 1;
}
else
{
SendClientMessage(playerid, COLOR_GREY, " An event is already active, use /endevent to finish the current event !");
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " You are not authorized to use that command !");
}
}
return 1;
}
if(strcmp(cmd, "/lockevent", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] >= 4)
{
if(ActiveEvent == 1)
{
EventLocked = 1;
SendClientMessageToAll(COLOR_LIGHTBLUE, "* Event: Administrator has locked the event !");
}
else
{
SendClientMessage(playerid, COLOR_GREY, " There are currently no events active !");
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " You are not authorized to use that command !");
}
}
return 1;
}
if(strcmp(cmdtext, "/quitevent", true) == 0)
{
if(IsAtEvent[playerid] != 0)
{
SetPlayerWeapons(playerid);
IsAtEvent[playerid] = 0;
ResetPlayerAdminWeaponsEx(playerid);
}
return 1;
}
if(strcmp(cmd, "/endevent", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] >= 4)
{
if(ActiveEvent == 1)
{
EventX = 0.0;
EventY = 0.0;
EventZ = 0.0;
EventInt = 0;
EventWorld = 0;
EventHP = 100;
EventArmour = 0;
ActiveEvent = 0;
EventLocked = 0;
EventWeapon1 = 0;
EventWeapon2 = 0;
EventWeapon3 = 0;
EventWeapon4 = 0;
EventWeapon5 = 0;
EventJoinText = 0;
format(EventText, sizeof(EventText), "None");
SendClientMessageToAll(COLOR_LIGHTBLUE, "* Event: Event has been finished !");
//foreach(Player, i)
for(new i; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(IsAtEvent[i] == 1)
{
SetPlayerWeapons(i);
IsAtEvent[i] = 0;
ResetPlayerAdminWeaponsEx(i);
}
}
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " There are currently no events active !");
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " You are not authorized to use that command !");
}
}
return 1;
}
if(strcmp(cmdtext, "/quitevent", true) == 0)
{
if(IsAtEvent[playerid] != 0)
{
SetPlayerWeapons(playerid);
IsAtEvent[playerid] = 0;
ResetPlayerAdminWeaponsEx(playerid);
}
return 1;
}
if(strcmp(cmd, "/endevent", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] >= 4)
{
if(ActiveEvent == 1)
{
EventX = 0.0;
EventY = 0.0;
EventZ = 0.0;
EventInt = 0;
EventWorld = 0;
EventHP = 100;
EventArmour = 0;
ActiveEvent = 0;
EventLocked = 0;
EventWeapon1 = 0;
EventWeapon2 = 0;
EventWeapon3 = 0;
EventWeapon4 = 0;
EventWeapon5 = 0;
EventJoinText = 0;
format(EventText, sizeof(EventText), "None");
SendClientMessageToAll(COLOR_LIGHTBLUE, "* Event: Event has been finished !");
//foreach(Player, i)
for(new i; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(IsAtEvent[i] == 1)
{
SetPlayerWeapons(i);
IsAtEvent[i] = 0;
ResetPlayerAdminWeaponsEx(i);
}
}
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " There are currently no events active !");
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " You are not authorized to use that command !");
}
}
return 1;
}
if(strcmp(cmd, "/announceevent", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] >= 4)
{
if(ActiveEvent == 1)
{
SendClientMessageToAll(COLOR_LIGHTBLUE, "* Event: Event has been started. /joinevent to participate !");
}
else
{
SendClientMessage(playerid, COLOR_GREY, " You need to start the event first (/startevent) !");
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " You are not authorized to use that command !");
}
}
return 1;
}