/sethp and /setarmor
#4

Quote:
Originally Posted by Jaua10
Посмотреть сообщение
Код:
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.
also i cant use the cmd because its says you're not autorized...
PHP код:
CMD:sethp(playeridparams[])
{
    new 
idFloat:hp;
    if(
PlayerInfo[playerid][pAdmin] < 4) return SendClientMessage(playeridCOLOR_GRAD"You are not authorized to use that command!");
    if(
sscanf(params"uf"idhp)) return SendClientMessage(playeridCOLOR_GRAD"USAGE: /sethp [Playerid/PartOfName] [Health]"); 
    if(
id == INVALID_PLAYER_ID) return SendClientMessage(playeridCOLOR_RED"[Error] Player not connected.");
    
SetPlayerHealth(idhp);
    return 
1;
}
CMD:setarmor(playeridparams[])
{
    new 
idFloat:armor;
    if(
PlayerInfo[playerid][pAdmin] < 4) return SendClientMessage(playeridCOLOR_GRAD"You are not authorized to use that command!");
    if(
sscanf(params"uf"idarmor)) return SendClientMessage(playeridCOLOR_GRAD"USAGE: /setarmor [Playerid/PartOfName] [Armor]"); 
    if(
id == INVALID_PLAYER_ID) return SendClientMessage(playeridCOLOR_RED"[Error] Player not connected.");
    
SetPlayerArmour(idarmor);
    return 
1;

Reply


Messages In This Thread
/sethp and /setarmor - by Jaua10 - 02.10.2017, 02:33
Re: /sethp and /setarmor - by MEW273 - 02.10.2017, 03:02
Re: /sethp and /setarmor - by Jaua10 - 02.10.2017, 03:19
Re: /sethp and /setarmor - by Swankeh - 02.10.2017, 03:37
Re: /sethp and /setarmor - by Jaua10 - 02.10.2017, 04:32

Forum Jump:


Users browsing this thread: 1 Guest(s)