03.09.2015, 11:19
i fixed it but when i set a rank in game it say
Your leader Mongi has given you a rank: ''(here must be the rank)''
You have given a rank to Mongi ''(here must be the rank)''
the problem that i don't see the rank
this is the script
there are not any warrings
Your leader Mongi has given you a rank: ''(here must be the rank)''
You have given a rank to Mongi ''(here must be the rank)''
the problem that i don't see the rank
this is the script
there are not any warrings
Код:
if (strcmp(string, "/setrank", true) == 0) { if (orgleader[playerid] == 0) return SendClientMessage2(playerid, COLOR_WHITE, "Error: You aren't the (co)leader of an organization."); new ID, rank[28]; tmp = strtok(cmdtext, idx); if (!strlen(tmp)) return SendClientMessage2(playerid, COLOR_WHITE, "Usage: /setrank [playerid] [rank]"); if (strlen(rank) > 28) return SendClientMessage(playerid, 0xFF0000FF,"The maximum rank length is 28 characters!"); if (!IsPlayerConnected(ID)) return 1; if (GetPVarInt(giveplayerid, "playerorg") != GetPVarInt(playerid, "playerorg")) return SendPlayerFormattedText(playerid, COLOR_RED, "%s is not in your organization!", giveplayer, ""); GetPlayerName(playerid, playername, MAX_PLAYER_NAME); format(string,sizeof(string),"Your leader %s has given you a rank: '%s'", playername, rank); SendClientMessage(ID, 0xFFFF00FF, string); format(string,sizeof(string),"You have given a rank to %s (%s)", playername, rank); SendClientMessage(playerid, 0xFFFF00FF, string); return 1; }