25.05.2013, 13:19
Try this?
Your problem was here
See the if- Line. If you're vip it formats the string. But if you're not it doesn't. Because of that sends the server last formatted text. So the Blue marked text again.
pawn Код:
format(string, sizeof(string), "VIP: %s - VIP Points: %d - Total Donations: $%d - Shop Coupon: $%d", RPVIPN(playerb), PlayerInfo[playerid][pLPoints], PlayerInfo[playerb][pDonations], PlayerInfo[playerb][pCoupon]);
SendClientMessage(playerid, COLOR_VIP, string);
if(PlayerInfo[playerid][pVIP])
{
format(string, sizeof(string), "VIP Expiration: %d/%d/2013", PlayerInfo[playerid][pVIPMonth], PlayerInfo[playerid][pVIPDay]);
SendClientMessage(playerid, COLOR_VIP, string);
}
pawn Код:
if(PlayerInfo[playerid][pVIP]) format(string, sizeof(string), "VIP Expiration: %d/%d/2013", PlayerInfo[playerid][pVIPMonth], PlayerInfo[playerid][pVIPDay]);
SendClientMessage(playerid, COLOR_VIP, string);