C:\Documents and Settings\GOD\Desktop\MY GM\gamemodes\wow.pwn(602) : warning 225: unreachable code C:\Documents and Settings\GOD\Desktop\MY GM\gamemodes\wow.pwn(623) : warning 225: unreachable code C:\Documents and Settings\GOD\Desktop\MY GM\gamemodes\wow.pwn(623) : warning 217: loose indentation C:\Documents and Settings\GOD\Desktop\MY GM\gamemodes\wow.pwn(3770) : warning 235: public function lacks forward declaration (symbol "KickAll") Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Warnings.
CMD:redalert(playerid, params[])
{
if(IsPlayerAdmin(playerid))
{
new string[256];
new aname[256];
GetPlayerName(playerid,aname,sizeof(aname));
GameTextForAll("~r~Red Alert",7000,4);
format(string,sizeof(string), "Admin: %s has called Red Alert",aname);
SendClientMessageToAll(0xAA3333AA,string);
SendClientMessageToAll(0xAA3333AA,"You will all be kicked in ten seconds.");
RedAlertTimer = SetTimer("KickAll",10000,0);
SendClientMessage(playerid, 0xFFFF00AA, "Red Alert Successful. To Abort Type /abort");
printf("%s has initialized the red alert countdown.",aname);
return 1;
}
else
{
return 0;
}
return 1;
}
CMD:abort(playerid, params[])
{
if(IsPlayerAdmin(playerid))
{
new string[256];
new aname[256];
GetPlayerName(playerid,aname,sizeof(aname));
GameTextForAll("~y~Red Alert Aborted",7000,4);
format(string,sizeof(string), "Admin: %s has canceled the Red Alert",aname);
SendClientMessageToAll(0x33AA33AA,string);
KillTimer(RedAlertTimer);
SendClientMessage(playerid, 0xFFFF00AA, "Red Alert Abort Successful.");
printf("%s has cancelled the red alert countdown.",aname);
return 1;
}
else
{
return 0;
}
return 1;
}
public KickAll()
{
for (new i = 0; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i))
{
Kick(i);
}
}
}
if(IsPlayerAdmin(playerid))
{
new string[256];
new aname[256];
GetPlayerName(playerid,aname,sizeof(aname));
GameTextForAll("~r~Red Alert",7000,4);
format(string,sizeof(string), "Admin: %s has called Red Alert",aname);
SendClientMessageToAll(0xAA3333AA,string);
SendClientMessageToAll(0xAA3333AA,"You will all be kicked in ten seconds.");
RedAlertTimer = SetTimer("KickAll",10000,0);
SendClientMessage(playerid, 0xFFFF00AA, "Red Alert Successful. To Abort Type /abort");
printf("%s has initialized the red alert countdown.",aname);
return 1;
}
if(IsPlayerAdmin(playerid))
{
new string[256];
new aname[256];
GetPlayerName(playerid,aname,sizeof(aname));
GameTextForAll("~r~Red Alert",7000,4);
format(string,sizeof(string), "Admin: %s has called Red Alert",aname);
SendClientMessageToAll(0xAA3333AA,string);
SendClientMessageToAll(0xAA3333AA,"You will all be kicked in ten seconds.");
RedAlertTimer = SetTimer("KickAll",10000,0);
SendClientMessage(playerid, 0xFFFF00AA, "Red Alert Successful. To Abort Type /abort");
printf("%s has initialized the red alert countdown.",aname);
return 1;
}
forward KickAll();
C:\Documents and Settings\GOD\Desktop\MY GM\gamemodes\wow.pwn(489) : error 004: function "DestroyObjects" is not implemented
C:\Documents and Settings\GOD\Desktop\MY GM\gamemodes\wow.pwn(538) : error 017: undefined symbol "StealthMode"
C:\Documents and Settings\GOD\Desktop\MY GM\gamemodes\wow.pwn(542) : error 017: undefined symbol "RevealPlayer"
C:\Documents and Settings\GOD\Desktop\MY GM\gamemodes\wow.pwn(549) : error 017: undefined symbol "RevealPlayer"
C:\Documents and Settings\GOD\Desktop\MY GM\gamemodes\wow.pwn(596) : warning 217: loose indentation
C:\Documents and Settings\GOD\Desktop\MY GM\gamemodes\wow.pwn(596) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\GOD\Desktop\MY GM\gamemodes\wow.pwn(599) : error 029: invalid expression, assumed zero
C:\Documents and Settings\GOD\Desktop\MY GM\gamemodes\wow.pwn(599) : error 017: undefined symbol "cmd_abort"
C:\Documents and Settings\GOD\Desktop\MY GM\gamemodes\wow.pwn(599) : error 029: invalid expression, assumed zero
C:\Documents and Settings\GOD\Desktop\MY GM\gamemodes\wow.pwn(599) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
9 Errors.
CMD:redalert(playerid, params[])
{
if(IsPlayerAdmin(playerid))
{
new string[256];
new aname[256];
GetPlayerName(playerid,aname,sizeof(aname));
GameTextForAll("~r~Red Alert",7000,4);
format(string,sizeof(string), "Admin: %s has called Red Alert",aname);
SendClientMessageToAll(0xAA3333AA,string);
SendClientMessageToAll(0xAA3333AA,"You will all be kicked in ten seconds.");
RedAlertTimer = SetTimer("KickAll",10000,0);
SendClientMessage(playerid, 0xFFFF00AA, "Red Alert Successful. To Abort Type /abort");
printf("%s has initialized the red alert countdown.",aname);
}
else
{
return 0;
}
}
CMD:abort(playerid, params[])
{
if(IsPlayerAdmin(playerid))
{
new string[256];
new aname[256];
GetPlayerName(playerid,aname,sizeof(aname));
GameTextForAll("~y~Red Alert Aborted",7000,4);
format(string,sizeof(string), "Admin: %s has canceled the Red Alert",aname);
SendClientMessageToAll(0x33AA33AA,string);
KillTimer(RedAlertTimer);
SendClientMessage(playerid, 0xFFFF00AA, "Red Alert Abort Successful.");
printf("%s has cancelled the red alert countdown.",aname);
}
else
{
return 0;
}
}
CMD:redalert(playerid, params[])
{
if(IsPlayerAdmin(playerid))
{
new string[256];
new aname[256];
GetPlayerName(playerid,aname,sizeof(aname));
GameTextForAll("~r~Red Alert",7000,4);
format(string,sizeof(string), "Admin: %s has called Red Alert",aname);
SendClientMessageToAll(0xAA3333AA,string);
SendClientMessageToAll(0xAA3333AA,"You will all be kicked in ten seconds.");
RedAlertTimer = SetTimer("KickAll",10000,0);
SendClientMessage(playerid, 0xFFFF00AA, "Red Alert Successful. To Abort Type /abort");
printf("%s has initialized the red alert countdown.",aname);
}
else
{
return 0;
}
return 1;
}
CMD:abort(playerid, params[])
{
if(IsPlayerAdmin(playerid))
{
new string[256];
new aname[256];
GetPlayerName(playerid,aname,sizeof(aname));
GameTextForAll("~y~Red Alert Aborted",7000,4);
format(string,sizeof(string), "Admin: %s has canceled the Red Alert",aname);
SendClientMessageToAll(0x33AA33AA,string);
KillTimer(RedAlertTimer);
SendClientMessage(playerid, 0xFFFF00AA, "Red Alert Abort Successful.");
printf("%s has cancelled the red alert countdown.",aname);
}
else
{
return 0;
}
return 1;
}
forward KickAll();
public KickAll()
CMD:redalert(playerid, params[])
{
if(!IsPlayerAdmin(playerid)) return 0;
new string[128], aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, sizeof(aname));
GameTextForAll("~r~Red Alert", 7000, 4);
format(string, sizeof(string), "Admin: %s has called Red Alert", aname);
SendClientMessageToAll(0xAA3333AA, string);
SendClientMessageToAll(0xAA3333AA, "You will all be kicked in ten seconds.");
RedAlertTimer = SetTimer("KickAll", 10000, 0);
SendClientMessage(playerid, 0xFFFF00AA, "Red Alert Successful. To Abort Type /abort");
printf("%s has initialized the red alert countdown.", aname);
return 1;
}
CMD:abort(playerid, params[])
{
if(!IsPlayerAdmin(playerid)) return 0;
new string[128], aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, sizeof(aname));
GameTextForAll("~y~Red Alert Aborted", 7000, 4);
format(string, sizeof(string), "Admin: %s has canceled the Red Alert", aname);
SendClientMessageToAll(0x33AA33AA, string);
KillTimer(RedAlertTimer);
SendClientMessage(playerid, 0xFFFF00AA, "Red Alert Abort Successful.");
printf("%s has cancelled the red alert countdown.", aname);
return 1;
}
forward KickAll();
public KickAll()
{
for(new i = 0; i < MAX_PLAYERS; i++) {
if(IsPlayerConnected(i)) {
Kick(i);
}
}
}
Edit: Too late! I didn't see, it solved.
pawn Код:
|
by the way i need a rep to improve my great in scripting
give me a rep by clicking the star near on online button - only click it if i ever help you. i try all my best. |