20.03.2011, 15:07
Im Added HOG Im get some errors
Код:
C:\Users\Vijay_Rasigan\Desktop\sarp_2_\sarp\gamemodes\sarp.pwn(41762) : error 017: undefined symbol "Untouchable" C:\Users\Vijay_Rasigan\Desktop\sarp_2_\sarp\gamemodes\sarp.pwn(41762) : warning 215: expression has no effect C:\Users\Vijay_Rasigan\Desktop\sarp_2_\sarp\gamemodes\sarp.pwn(41762) : error 001: expected token: ";", but found "]" C:\Users\Vijay_Rasigan\Desktop\sarp_2_\sarp\gamemodes\sarp.pwn(41762) : error 029: invalid expression, assumed zero C:\Users\Vijay_Rasigan\Desktop\sarp_2_\sarp\gamemodes\sarp.pwn(41762) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
pawn Код:
if(strcmp(cmd, "/hog", true) == 0) // By Venice
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /hog [playerid/PartOfName]");
return 1;
}
giveplayerid = ReturnUser(tmp);
if (PlayerInfo[playerid][pAdmin] >= 2)
{
if(IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
new targetlevel = PlayerInfo[giveplayerid][pAdmin];
new playerlevel = PlayerInfo[playerid][pAdmin];
if(targetlevel > playerlevel) return SendClientMessage(playerid, COLOR_GREY, "* You can not ban People that is higher Than You!");
if(giveplayerid != playerid && Untouchable[giveplayerid]) return SendClientMessage(playerid, COLOR_GREY, "* You Can't Do this on This player!");
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
SetPlayerHealth(giveplayerid,0);
GameTextForPlayer(giveplayerid, "~r~You Have Been Died By Some Terrible Shit", 6000, 3);
format(string, sizeof(string), "%s Has Died By The Hand Of God",giveplayer);
SendClientMessageToAll(COLOR_RED,string);
}
}
}
else
{
format(string, sizeof(string), "** %d is not an active player.", giveplayerid);
SendClientMessage(playerid, COLOR_GRAD1, string);
}
}
return 1;
}