stats help
#7

Try this?

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);
}
Your problem was here

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);
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.
Reply


Messages In This Thread
stats help - by MichaelWharton101 - 24.05.2013, 12:53
Re: stats help - by MichaelWharton101 - 25.05.2013, 04:23
Re: stats help - by DobbysGamertag - 25.05.2013, 04:26
Re: stats help - by MichaelWharton101 - 25.05.2013, 04:32
Re: stats help - by DobbysGamertag - 25.05.2013, 04:33
Re: stats help - by MichaelWharton101 - 25.05.2013, 13:15
AW: stats help - by Skimmer - 25.05.2013, 13:19

Forum Jump:


Users browsing this thread: 3 Guest(s)