01.01.2010, 03:12
Post the whole thing because I don't fully understand the format line.
this is how i should do it:
[RANKVARIABLE] Your Rank Is: Enforcer/rankname
this is how i should do it:
[RANKVARIABLE] Your Rank Is: Enforcer/rankname
pawn Code:
dcmd_myrank(playerid,params[])
{
new str[128];
#pragma unused params
if(PInfo[playerid][Rank] == 1)
{
format(str,sizeof(string),"[Rank number:%d] Your rank is: Enforcer",PInfo[playerid][Rank]);
SendClientMessage(playerid, 0x7CFC00AA, str);
}
else if(..................)
{
..........
}
and so on