status command,messed up after adding a new var
#1

Hello,I have recently added a new player info to my server,it is "XP" the script gives the XP so that works pretty fine,but when it comes to the status command,the XP area is usually blank. (Bugged)

I don't know much aboout strings,so here's the code.


pawn Код:
CMD:status(playerid,params[])
{
    new string[768]; //I think the problem is here.
    format(string, sizeof(string), "||Stats||:Kills: %d | Deaths: %d | Score: %d | Admin: %d | VIP: %d | Rank: %s | | XP Point: %s |" ,PlayerInfo[playerid][pKills],PlayerInfo[playerid][pDeaths],GetPlayerScore(playerid),PlayerInfo[playerid][pAdmin],PlayerInfo[playerid][pVip],Rank(playerid),PlayerInfo[playerid][pXp]);
    SendClientMessage(playerid,ORANGE,string);
    return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)