commands not works :(
#17

did here %s = amount??
Quote:

COMMAND: sethealth(playerid, params[])
{
new pID, aName[MAX_PLAYER_NAME], pName[MAX_PLAYER_NAME],Amount[128], string[256];
if (IsPlayerAdmin(playerid))
if(sscanf(params,"us",pID, Amount)) return SendClientMessage(playerid,COLOR_WHITE,"[CMD]:/sethealth [PlayerID] [Amount]");
else if (pID==INVALID_PLAYER_ID)SendClientMessage(playerid ,COLOR_BRIGHTRED,"[ERROR]:Player not Found!");
else
{
GetPlayerName(playerid,aName,sizeof(aName));
GetPlayerName(pID,pName,sizeof(pName));
format(string, sizeof(string),"Admin Has Healed You",aName, pName, Amount);
SendClientMessage(playerid,COLOR_BRIGHTRED,string) ;
SetPlayerHealth(pID,%s);
}
else return SendClientMessage(playerid, COLOR_BRIGHTRED, "[ERROR]:You need to be an Admin to Access this Commands!");
return 1;
}

Reply


Messages In This Thread
sscanf and zcmd (akill command) [REP ++] - by SamiHam - 12.07.2012, 14:47
Re: commands not works :( - by UnknownGamer - 12.07.2012, 15:49
Re: commands not works :( - by SamiHam - 12.07.2012, 16:00
Re: commands not works :( - by SamiHam - 13.07.2012, 06:43
Re: commands not works :( - by Kaperstone - 13.07.2012, 07:41
Re: commands not works :( - by SamiHam - 13.07.2012, 08:25
Re: commands not works :( - by Pro_Scriptor - 13.07.2012, 09:00
Re: commands not works :( - by clarencecuzz - 13.07.2012, 09:55
Re: commands not works :( - by SamiHam - 13.07.2012, 09:58
Re: commands not works :( - by Devilxz97 - 13.07.2012, 11:21
Re: commands not works :( - by Devilxz97 - 13.07.2012, 11:59
Re: commands not works :( - by SamiHam - 13.07.2012, 12:05
Re: commands not works :( - by Devilxz97 - 13.07.2012, 12:16
Re: commands not works :( - by Devilxz97 - 13.07.2012, 12:39
Re: commands not works :( - by SamiHam - 13.07.2012, 12:52
Re: commands not works :( - by Devilxz97 - 13.07.2012, 12:58
Re: commands not works :( - by SamiHam - 13.07.2012, 13:01
Re: commands not works :( - by Devilxz97 - 13.07.2012, 13:12
Re: commands not works :( - by Devilxz97 - 13.07.2012, 13:58
Re: commands not works :( - by Andi_Evandy - 13.07.2012, 14:06

Forum Jump:


Users browsing this thread: 1 Guest(s)