01.07.2015, 20:54
Код:
C:\Users\user\Desktop\slrp_main.pwn(64226) : warning 213: tag mismatch C:\Users\user\Desktop\slrp_main.pwn(64231) : warning 213: tag mismatch C:\Users\user\Desktop\slrp_main.pwn(64233) : warning 213: tag mismatch C:\Users\user\Desktop\slrp_main.pwn(64233) : warning 213: tag mismatch C:\Users\user\Desktop\slrp_main.pwn(64233) : warning 213: tag mismatch C:\Users\user\Desktop\slrp_main.pwn(64235) : warning 213: tag mismatch C:\Users\user\Desktop\slrp_main.pwn(64236) : warning 213: tag mismatch C:\Users\user\Desktop\slrp_main.pwn(64236) : warning 213: tag mismatch
pawn Код:
CMD:astatus(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] >= 2)
{
new astatus[32], string[128], PlayerText3D:adminstatus, LabelPos[3];
if(sscanf(params, "s[32]", astatus)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /astatus [status/off]");
if(strcmp(params, "off", true) == 0)
{
Delete3DTextLabel(adminstatus); // Line 64226
DeletePlayer3DTextLabel(playerid, adminstatus);
SendClientMessageEx(playerid, COLOR_WHITE, "You have disabled your admin status");
return 1;
}
DestroyDynamic3DTextLabel(adminstatus); // Line 64231
DeletePlayer3DTextLabel(playerid, adminstatus);
GetPlayerPos(playerid, LabelPos[0], LabelPos[1], LabelPos[2]); // Line 64233
format(astatus, sizeof(astatus), "%s", params);
adminstatus = CreateDynamic3DTextLabel(astatus, COLOR_YELLOW, LabelPos[0], LabelPos[1], LabelPos[2], 10.0, GetPlayerVirtualWorld(playerid), GetPlayerInterior(playerid)); // Line 64235
Attach3DTextLabelToPlayer(playerid, adminstatus, 0.0, 0.0, 0.7); // Line 64236
format(string, sizeof(string), "You have set your admin status to %s", astatus);
SendClientMessageEx(playerid, COLOR_WHITE, string);
}
else SendClientMessageEx(playerid, COLOR_GREY, "You are not authorized to use that command.");
return 1;
}