07.06.2014, 07:17
Use foreach instead. Get foreach include (search).
At the top of your script
Maybe this?
At the top of your script
pawn Код:
#include <foreach>
pawn Код:
else if(!strcmp(params, "admtag", true))
{
if(PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
if(!AdminTag[playerid])
{
foreach(Player,i) ShowPlayerNameTagForPlayer(i,playerid,0);
AdminTag[playerid] = 1;
format(string, sizeof(string), "{FF6347}EG-RP Administrator\n{FFFFFF}%s\n{2641FE}%s", RPN(playerid), RPALN(playerid));
AdminText[playerid] = CreateDynamic3DTextLabel(string, COLOR_WHITE, 0.0, 0.0, 0.4, 25, playerid);
Streamer_SetFloatData(STREAMER_TYPE_3D_TEXT_LABEL, AdminText[playerid] , E_STREAMER_ATTACH_OFFSET_Z, 0.25);
SendClientMessage(playerid, COLOR_GREEN, "You have toggled your Admin Head Tag on.");
}
else if(AdminTag[playerid] == 1)
{
foreach(Player,i) ShowPlayerNameTagForPlayer(i,playerid,1);
AdminTag[playerid] = 0;
if(IsValidDynamic3DTextLabel(AdminText[playerid])) DestroyDynamic3DTextLabel(AdminText[playerid]);
SendClientMessage(playerid, COLOR_DARKRED, "You have toggled your Admin Head Tag off.");
}
}

