Problem with stats
#4

Yeh, like Tom said it will only read one string.

The reason your code only reads the last line (even if you just used SendClientMessage) is because you never send the message before reformatting the string.

You should do:
pawn Код:
format(string,sizeof(string), "{0099FF}Money: %d\nLevel: %d", money,score); //formats string.
SendClientMessage(playerid, -1, string) //sends string.
    format(string,sizeof(string), "{00AAFF}%s\nAdmin: %d\nVIP: %d", string, admin, vip); //reformats string
SendClientMessage(playerid, -1, string) //sends reformatted string.
If you give me a bit; i will edit this post with the finished string.
Reply


Messages In This Thread
Problem with stats - by Pawnie - 31.08.2013, 15:59
Re: Problem with stats - by Tom1412 - 31.08.2013, 16:09
Re: Problem with stats - by knackworst - 31.08.2013, 16:14
Re: Problem with stats - by EiresJason - 31.08.2013, 16:14
Re: Problem with stats - by Dragonsaurus - 31.08.2013, 16:16
Re: Problem with stats - by EiresJason - 31.08.2013, 16:22
Re: Problem with stats - by Pawnie - 31.08.2013, 23:37
Re : Problem with stats - by PakPak - 01.09.2013, 00:05

Forum Jump:


Users browsing this thread: 1 Guest(s)