Stats in textdraws - targetid help
#6

Try this:

Код:
if (strcmp (cmdtext, "/account", true) == 0)
{
if (IsPlayerConnected (playerid))
{
TextDrawShowForPlayer(playerid, StatsTacke);
        format(string,sizeof string,"---------------------");
        TextDrawSetString(StatsTacke,string);

        TextDrawShowForPlayer(playerid, StatsLevel);
        format(string,sizeof string,"LEVEL: %d",PlayerInfo[playerid][pLevel]);
        TextDrawSetString(StatsLevel,string);

        TextDrawShowForPlayer(playerid, StatsRespekti);
        new nxtlevel = PlayerInfo[playerid][pLevel]+1;
        new expamount = nxtlevel*levelexp;
        format(string,sizeof string,"RESPEKTI: %d/%d",PlayerInfo[playerid][pExp], expamount);
        TextDrawSetString(StatsRespekti,string);

        TextDrawShowForPlayer(playerid, StatsDoRespekta);
        format(string,sizeof string,"DO RESPEKTA: %d/60", PlayerInfo[playerid][pMinutePayDay]);
        TextDrawSetString(StatsDoRespekta,string);

        TextDrawShowForPlayer(playerid, StatsNovac);
        format(string,sizeof string,"NOVAC: %d$", PlayerInfo[playerid][pCash]);
        TextDrawSetString(StatsNovac,string);

        TextDrawShowForPlayer(playerid, StatsBanka);
        format(string,sizeof string,"BANKA: %d$", PlayerInfo[playerid][pAccount]);
        TextDrawSetString(StatsBanka,string);

        TextDrawShowForPlayer(playerid, StatsOrg);
        format(string,sizeof string,"ORG: %d", PlayerInfo[playerid][pMember]);
        TextDrawSetString(StatsOrg,string);
}
return true;
}
Reply


Messages In This Thread
Stats in textdraws - targetid help - by Saddin - 27.07.2012, 21:16
Re: Stats in textdraws - targetid help - by Roko_foko - 27.07.2012, 21:24
Re: Stats in textdraws - targetid help - by Saddin - 27.07.2012, 21:26
Re: Stats in textdraws - targetid help - by Roko_foko - 27.07.2012, 21:31
Re: Stats in textdraws - targetid help - by Saddin - 27.07.2012, 21:37
Re: Stats in textdraws - targetid help - by Marlon_Lorran - 27.07.2012, 21:37
Re: Stats in textdraws - targetid help - by The__ - 27.07.2012, 21:38
Re: Stats in textdraws - targetid help - by Saddin - 27.07.2012, 22:04
Re: Stats in textdraws - targetid help - by Saddin - 28.07.2012, 07:39
Re: Stats in textdraws - targetid help - by Roko_foko - 28.07.2012, 08:11
Re: Stats in textdraws - targetid help - by Saddin - 28.07.2012, 08:14
Re: Stats in textdraws - targetid help - by nGen.SoNNy - 28.07.2012, 08:21
Re: Stats in textdraws - targetid help - by Saddin - 28.07.2012, 11:08
Re: Stats in textdraws - targetid help - by nGen.SoNNy - 28.07.2012, 11:52
Re: Stats in textdraws - targetid help - by Saddin - 28.07.2012, 12:05
Re: Stats in textdraws - targetid help - by Roko_foko - 28.07.2012, 12:57
Re: Stats in textdraws - targetid help - by Saddin - 28.07.2012, 13:01
Re: Stats in textdraws - targetid help - by Roko_foko - 28.07.2012, 13:14
Re: Stats in textdraws - targetid help - by Saddin - 28.07.2012, 13:19
Re: Stats in textdraws - targetid help - by Roko_foko - 28.07.2012, 16:11
Re: Stats in textdraws - targetid help - by Saddin - 28.07.2012, 16:15
Re: Stats in textdraws - targetid help - by Roko_foko - 28.07.2012, 16:25
Re: Stats in textdraws - targetid help - by Saddin - 28.07.2012, 16:29
Re: Stats in textdraws - targetid help - by Saddin - 28.07.2012, 16:37
Re: Stats in textdraws - targetid help - by Roko_foko - 28.07.2012, 16:40
Re: Stats in textdraws - targetid help - by Saddin - 28.07.2012, 16:42
Re: Stats in textdraws - targetid help - by Saddin - 28.07.2012, 16:58

Forum Jump:


Users browsing this thread: 5 Guest(s)