09.08.2011, 12:34
i tried importing the "view pms" function from ravens roleplay gm and im stuck when i create the command
the compiler crashes,what am i doing wrong?
pawn Код:
if(strcmp(cmd, "/togglepm", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if (PlayerInfo[playerid][pAdmin] >= 1339)
(
if(PlayerInfo[playerid][pViewPms] == 0)
{
SendClientMessage(playerid, COLOR_GREY, "* You have Turned off the PM Messages!");
PlayerInfo[playerid][pViewPms] = 0;
// format(string, sizeof(string), "[ADMIN]: %s has turned off the PM Messages.",sendername);
// ABroadCast(COLOR_LIGHTRED, string, 5);
}
else if(PlayerInfo[playerid][pViewPms] == 0)
{
SendClientMessage(playerid, COLOR_GREY, "* You have Turned on the PM Messages!");
PlayerInfo[playerid][pViewPms] = 1;
// format(string, sizeof(string), "[ADMIN]: %s has turned on the PM Messages.",sendername);
// ABroadCast(COLOR_LIGHTRED, string, 5);
}
}
}
return 1;
}
the compiler crashes,what am i doing wrong?