15.03.2011, 12:29
Evening/Morning Fello Scripters
Hmmm... all of my text seems to be getting cut off in my /stats
Pic:
Image... <- Link
Script looks something like...
Many Thanks in return to anyone that could fix this problem.
Cheers,
Steve
Hmmm... all of my text seems to be getting cut off in my /stats
Pic:
Image... <- Link
Script looks something like...
pawn Код:
stock ShowStatistics(playerid, id)
{
if(Player[playerid][AdminLevel] >= Player[id][AdminLevel])
{
new string[128], GenderString[20], Rank[50], GroupString[128], phonestring[128], JobString[128];
SendClientMessage(playerid, RED, "-------------------------------------------------------------------------------------------------------------------------------------");
if(Player[id][Gender] == 1)
{
format(GenderString, sizeof(GenderString), "{FFFF00}Male");
}
else
{
format(GenderString, sizeof(GenderString), "{FFFF00}Female");
}
if(Player[id][PhoneN] == -1)
{
format(phonestring, sizeof(phonestring), "Phone Number: {FF0000}None");
}
else
{
format(phonestring, sizeof(phonestring), "Phone Number: {5DFC0A}%d", Player[id][PhoneN]);
}
if(Player[id][Job] >= 1)
{
format(JobString, sizeof(JobString), "{5DFC0A}%s", Jobs[Player[id][Job]]);
}
else
{
format(JobString, sizeof(JobString), "{FF0000}Unemployed");
}
if(Player[id][Group] >= 1)
{
format(GroupString, sizeof(GroupString), "{5DFC0A}%s", Groups[Player[id][Group]][GroupName]);
}
else
{
format(GroupString, sizeof(GroupString), "{FF0000}None");
}
if(Player[id][PlayingHours] < 1)
{
format(Rank, sizeof(Rank), "{5DFC0A}%s", OOCRanks[Rank1]);
}
else if(Player[id][PlayingHours] >= 1 && Player[id][PlayingHours] < 25)
{
format(Rank, sizeof(Rank), "{5DFC0A}%s", OOCRanks[Rank2]);
}
else if(Player[id][PlayingHours] >= 25 && Player[id][PlayingHours] < 100)
{
format(Rank, sizeof(Rank), "{5DFC0A}%s", OOCRanks[Rank3]);
}
else if(Player[id][PlayingHours] >= 100 && Player[id][PlayingHours] < 300)
{
format(Rank, sizeof(Rank), "{5DFC0A}%s", OOCRanks[Rank4]);
}
else if(Player[id][PlayingHours] >= 300)
{
format(Rank, sizeof(Rank), "{5DFC0A}%s", OOCRanks[Rank5]);
}
format(string, sizeof(string), "Name: {003EFF}%s {FFFFFF}| Age: {FFFF00}%d {FFFFFF}| Gender: %s {FFFFFF}| Job: %s {FFFFFF}| Group: %s {FFFFFF}| Rank: %d", GetName(id), Player[id][Age], GenderString, JobString, GroupString, Player[id][GroupRank]);
SendClientMessage(playerid, WHITE, string);
format(string, sizeof(string), "Playing Hours: {FFFF00}%d {FFFFFF}| Bank Money: {5DFC0A}$%s {FFFFFF}| Cocaine: {FF0000}%s {FFFFFF}G | Pot: {5DFC0A}%s {FFFFFF}G | Materials: {FFFF00}%s {FFFFFF}| {FFFF00}%s {FFFFFF}| Fish: {5DFC0A}%s", Player[id][PlayingHours], IntToFormattedStr(Player[id][BankMoney]), IntToFormattedStr(Player[id][Cocaine]), IntToFormattedStr(Player[id][Pot]), IntToFormattedStr(Player[id][Materials]), phonestring, IntToFormattedStr(Player[id][CollectedFish]));
SendClientMessage(playerid, WHITE, string);
format(string, sizeof(string), "Money: {00FF00}$%s {FFFFFF}| Phone Credit: {00FF00}$%s {FFFFFF}| Walkie Frequency:{0022E6}%d {FFFFFF}| Married To: {E600E6}%s", IntToFormattedStr(Player[id][Money]), IntToFormattedStr(Player[id][PhoneCredit]), Player[id][WalkieFrequency], Player[id][MarriedTo]);
SendClientMessage(playerid, WHITE, string);
format(string, sizeof(string), "Rope: {A25A03}%d {FFFFFF}| Rags: {FFFF00}%d {FFFFFF}| Recorded Crimes: {FF0000}%d {FFFFFF}| Status: {FF0000}%s", Player[id][Rope], Player[id][Rags], Player[id][CriminalOffences], Rank);
SendClientMessage(playerid, WHITE, string);
Cheers,
Steve