08.08.2017, 20:46
Hello, I have some small problems ... if you can help me o.0 
I want to appear the name of the faction, not faction id ..
I tried something but it did not work
I use YSI for save account
And sorry for my bad english...

I want to appear the name of the faction, not faction id ..
I tried something but it did not work
I use YSI for save account
And sorry for my bad english...
Код:
CMD:fackick(playerid,params[]) { if(pInfo[playerid][AdminLevel] >= 3 || pInfo[playerid][pFacLeader] == 1) { new targetid; new string[128]; new sext[64]; if(sscanf(params, "u", targetid)) return SendClientMessage(playerid, COLOR_RED, "/fackick [id]"); if(targetid != INVALID_PLAYER_ID) { if(pInfo[targetid][pFacID] == 1) { sext = "Police Departament"; } pInfo[targetid][pFacID] = 0; pInfo[targetid][pFacPRank] = 0; format(string,sizeof(string),"Ai fost dat afara din factiunea %s",pInfo[playerid][pFacID]); SendClientMessage(playerid,0xFFFFFFAA,string); } } else { SendClientMessage(playerid, COLOR_RED, "Only certain levels of Administration have access to this command."); } return 1; }