Doesn't Work?
#1

FIXED - Help No Longer Needed

Alright so I am making my /stats command for my server, and I came across and error. I format my string and send the string to the client, but it doesn't send for some reason the lines below it work perfectly fine.

Problem Lines
pawn Код:
format(string, 512, "Admin: {00D157}%s {F0F0F0}| {0087FF}Faction: {00D157}%s {F0F0F0}| {0087FF}Rank: {00D157}%s {F0F0F0}| {0087FF}Level: {00D157}%i", GetAdminRankName(Player_Admin[playerid]), Faction_Names[factionid], Faction_Ranks[factionid][rankid], Player_Level[playerid]);
SendClientMessage(playerid, COLOR_BLUE, string);
And The Lines Below
pawn Код:
format(string, 512, "Phone: {00D157}%i {F0F0F0}| {0087FF}Vehicle_0: {00D157}%i {F0F0F0}| {0087FF}Vehicle_1: {00D157}%i {F0F0F0}| {0087FF}Vehicle_2: {00D157}%i", Player_Phone[playerid], Player_Vehicle[playerid][0], Player_Vehicle[playerid][1], Player_Vehicle[playerid][2]);
SendClientMessage(playerid, COLOR_BLUE, string);
format(string, 512, "House: {00D157}-1 {F0F0F0}| {0087FF}Businesses: {00D157}%s {F0F0F0}| {0087FF}Kicks: {00D157}%i {F0F0F0}| {0087FF}Bans: {00D157}%i", businesses, Player_Kicks[playerid], Player_Bans[playerid]);
SendClientMessage(playerid, COLOR_BLUE, string);
The compiler doesn't output any warnings or errors. I modified the string size to see if that was the problem it appears not so just ignore that massive size. Note: I will give rep to the person who solves this problem first. Also please do not speak as if I am a noob. I have been scripting pawn for over a year and a half and other languages for more then 6 years.


Edit: I deleted the problem lines and remade them and now they work fine.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)