02.10.2017, 03:37
Quote:
Код:
C:\Users\Jaua\Downloads\gta-rp\gamemodes\GTARP.pwn(1465) : warning 204: symbol is assigned a value that is never used: "armor2" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Warning. |
PHP код:
CMD:sethp(playerid, params[])
{
new id, Float:hp;
if(PlayerInfo[playerid][pAdmin] < 4) return SendClientMessage(playerid, COLOR_GRAD, "You are not authorized to use that command!");
if(sscanf(params, "uf", id, hp)) return SendClientMessage(playerid, COLOR_GRAD, "USAGE: /sethp [Playerid/PartOfName] [Health]");
if(id == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_RED, "[Error] Player not connected.");
SetPlayerHealth(id, hp);
return 1;
}
CMD:setarmor(playerid, params[])
{
new id, Float:armor;
if(PlayerInfo[playerid][pAdmin] < 4) return SendClientMessage(playerid, COLOR_GRAD, "You are not authorized to use that command!");
if(sscanf(params, "uf", id, armor)) return SendClientMessage(playerid, COLOR_GRAD, "USAGE: /setarmor [Playerid/PartOfName] [Armor]");
if(id == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_RED, "[Error] Player not connected.");
SetPlayerArmour(id, armor);
return 1;
}