12.01.2012, 02:16
(
Последний раз редактировалось AustinJ; 12.01.2012 в 02:56.
)
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
And The Lines Below
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.
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);
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);
![Wink](images/smilies/wink.png)
Edit: I deleted the problem lines and remade them and now they work fine.