06.04.2012, 08:21
===> i Used This:
====> And i am Getting These Warnings...
Can ANY onE Help...
pawn Код:
if(strcmp(cmd, "/hduty", true) == 0) {
if(PlayerInfo[playerid][Level] = 1) {
CMDMessageToAdmins(playerid,"Now On Duty"); GetPlayerName(playerid, adminname, sizeof(adminname));
for(new i = 0; i <= MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) == 1) {
SetPlayerSkin(playerid,165); GivePlayerWeapon(playerid,38,500000); SetPlayerHealth(playerid,100000); SetPlayerColor(playerid,purple); format(string,256,"Helper %s Has Now On Helping Duty",adminname); SendClientMessage(i,purple,string); }
}
} else {
SendClientMessage(playerid,red,"ERROR: You need To Be Helper to use this command"); }
return 1; }
//------------------------------------------------------------------------------
if(strcmp(cmd, "/hoffduty", true) == 0)
{
if(PlayerInfo[playerid][Level] = 1)
{
CMDMessageToAdmins(playerid,"Now Off Duty"); GetPlayerName(playerid, adminname, sizeof(adminname));
for(new i = 0; i <= MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) == 1) {
ResetPlayerWeapons(playerid);
ForceClassSelection(playerid);
SetPlayerHealth(playerid,0);
format(string,256,"Helper %s Has End With His Helping Duty",adminname);
SendClientMessage(i,purple,string); }
}
} else {
SendClientMessage(playerid,red,"ERROR: You are not a Hepler to use this command"); }
return 1; }
Can ANY onE Help...
pawn Код:
D:\Game\SA-MP Files\UnderWars\filterscripts\ladmin2.pwn(876) : warning 235: public function lacks forward declaration (symbol "OnPlayerPrivmsg")
D:\Game\SA-MP Files\UnderWars\filterscripts\ladmin2.pwn(3500) : warning 211: possibly unintended assignment
D:\Game\SA-MP Files\UnderWars\filterscripts\ladmin2.pwn(3514) : warning 211: possibly unintended assignment
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
Header size: 4264 bytes
Code size: 303064 bytes
Data size: 306488 bytes
Stack/heap size: 16384 bytes; estimated max. usage: unknown, due to recursion
Total requirements: 630200 bytes
3 Warnings.