number of arguments does not match definition
#4

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
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);
}
Reply


Messages In This Thread
number of arguments does not match definition - by Immortal99 - 13.08.2016, 16:42
Re: number of arguments does not match definition - by Misiur - 13.08.2016, 16:48
Re: number of arguments does not match definition - by Immortal99 - 13.08.2016, 16:52
Re: number of arguments does not match definition - by Misiur - 13.08.2016, 17:05
Re: number of arguments does not match definition - by Immortal99 - 13.08.2016, 17:26
Re: number of arguments does not match definition - by Shinja - 13.08.2016, 18:08

Forum Jump:


Users browsing this thread: 1 Guest(s)