29.07.2009, 04:21
rename the variables you are using to something else, like this
pawn Код:
if(strcmp(cmd, "/hidenames", true) == 0)
{
if(PlayerInfo[playerid][pAdmin] == 6)
{
new stringofdoom[256];
new playername3[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername3, sizeof(playername3));
format(stringofdoom, sizeof(stringofdoom), "AdmCmd: %s has disabled all player name tags!",playername3);
SendClientMessageToAll(COLOR_YELLOW, stringofdoom);
ShowNameTags( 0 );
return 1;
}
else
{
SendClientMessage(playerid, COLOR_RED, " You are not authorised to use this command!");
return 1;
}
}