08.05.2013, 05:44
I meant by this code, not the other code. Take a closer look at it
Error is in the red light
please help me fix it and thanks
Код:
CMD:aduty(playerid) { if(PlayerInfo[playerid][pAdmin] >= 1) { new string[128]; if(AdminDuty[playerid] == 0) { format(string, sizeof(string), "<%s> %s %s is now on duty.",PlayerInfo[playerid][pAdmin], [pAdminTitle], PlayerName(playerid)); BroadCast(COLOR_YELLOW,string); AdminDuty[playerid] = 1; SetPlayerColor(playerid, COLOR_BRIGHTRED); if(PlayerInfo[playerid][pSex] == 1) { SetPlayerSkin(playerid, 217); } else { SetPlayerSkin(playerid, 211); } return 1; } else { format(string, sizeof(string), "<%s> %s %s is now off duty.",PlayerInfo[playerid][pAdmin], [pAdminTitle], PlayerName(playerid)); BroadCast(COLOR_YELLOW,string); AdminDuty[playerid] = 0; DestroyDynamic3DTextLabel(AdminLabel[playerid]); SetPlayerSkin(playerid, PlayerInfo[playerid][pModel]); if(PlayerInfo[playerid][pDonateRank] == 1 || PlayerInfo[playerid][pDonateRank] == 2 || PlayerInfo[playerid][pDonateRank] == 3) { SetPlayerColor(playerid, COLOR_YELLOW); } else if(PlayerInfo[playerid][pDonateRank] >= 4) { SetPlayerColor(playerid, COLOR_PINK); } else if(PlayerInfo[playerid][pConnectTime] < 50) { SetPlayerColor(playerid, COLOR_LIGHTGREEN); } else { SetPlayerColor(playerid, COLOR_WHITE); } return 1; } } return 1; }
please help me fix it and thanks