01.07.2012, 09:51
Код:
C:\Users\Patrick\Desktop\samp server\HighSky server\gamemodes\highskyrptest.pwn(3314) : warning 235: public function lacks forward declaration (symbol "Audio_OnSetPack") C:\Users\Patrick\Desktop\samp server\HighSky server\gamemodes\highskyrptest.pwn(15478) : error 010: invalid function or declaration C:\Users\Patrick\Desktop\samp server\HighSky server\gamemodes\highskyrptest.pwn(15480) : error 010: invalid function or declaration C:\Users\Patrick\Desktop\samp server\HighSky server\gamemodes\highskyrptest.pwn(15483) : error 010: invalid function or declaration C:\Users\Patrick\Desktop\samp server\HighSky server\gamemodes\highskyrptest.pwn(15487) : error 021: symbol already defined: "format" C:\Users\Patrick\Desktop\samp server\HighSky server\gamemodes\highskyrptest.pwn(15495) : error 010: invalid function or declaration C:\Users\Patrick\Desktop\samp server\HighSky server\gamemodes\highskyrptest.pwn(15500) : error 021: symbol already defined: "SetPlayerSkin" C:\Users\Patrick\Desktop\samp server\HighSky server\gamemodes\highskyrptest.pwn(15506) : error 010: invalid function or declaration C:\Users\Patrick\Desktop\samp server\HighSky server\gamemodes\highskyrptest.pwn(86574) : warning 203: symbol is never used: "msgstring" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 7 Errors.
pawn Код:
if(strcmp(cmd, "/aduty", true) == 2)
{
if(PlayerInfo[playerid][pAdmin] > 2)
{
new msgstring[150];
if(PlayerInfo[playerid][pAdminDuty] == 2)
{
format(PlayerInfo[playerid][pNormalName], 255, "%s", GetName(playerid));
//SetPlayerName(playerid, PlayerInfo[playerid][pAdminName]);
format(msgstring, sizeof(string), "{01A601}** Administrator %s is now on admin duty. (/report for assistance) **",sendername);
SendClientMessageToAll(COLOR_WHITE, msgstring);
SetPVarInt(playerid, "LastSkin", GetPlayerSkin(playerid));
SetPlayerSkin(playerid, 240);
PlayerInfo[playerid][pAdminDuty] = 1;
SetPlayerHealth(playerid, 9999);
SetPlayerArmour(playerid, 9999);
}
else
}
format(msgstring, sizeof(string), "{FF0000}** Administrator %s is now off admin duty. **",sendername);
SendClientMessageToAll(COLOR_WHITE, msgstring);
//SetPlayerName(playerid, PlayerInfo[playerid][pNormalName]);
SetPlayerSkin(playerid, GetPVarInt(playerid, "LastSkin"));
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 0);
PlayerInfo[playerid][pAdminDuty] = 0;
}
}
return 1;
}