13.08.2016, 17:05
1. I asked about code of SendAllFormatedText, not where error is.
2. Compare my code to yours and learn not to commit the same mistakes again
2. Compare my code to yours and learn not to commit the same mistakes again
pawn Код:
CMD:explode(playerid, params[])
{
new targetid, string[80], pName[24], pTame[24];
if (adlvl[playerid] < 2) return 0;
if(sscanf(params, "uz", targetid)) return SendClientMessage(playerid, 0xFFFFFFFF, "USAGE: [PlayerID/PartOfName]");
if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid, 0xFFFFFFFF, "Player not connected!");
new Float:SLX, Float:SLY, Float:SLZ;
GetPlayerPos(targetid, SLX, SLY,SLZ);
CreateExplosion(SLX, SLY, SLZ, 11, 0.25);
GetPlayerName(playerid,pName,24);
GetPlayerName(targetid,pTame,24);
SendClientMessage(targetid, COLOR_ORANGE,"You has been exploded by An Admin.");
format(string,sizeof(string),"You have exploded %s.", pTame);
return SendClientMessage(playerid, COLOR_YELLOW,string);
}

