Help with textdraw .
#1

Well, i've added this on onplayerconnect and with this it should show up a Textdraw with how much he has RPoints and how much he must have to level up. But the problem is it only shows Rpoints: / ?without the numbers?
pawn Код:
new exp[MAX_STRING];
    new tlvl;
    if(PlayerInfo[playerid][playerlvl]<=7) tlvl=9;
    else tlvl=PlayerInfo[playerid][playerlvl]*2;
    format(exp,sizeof(exp),"RPoints: %s/%s",PlayerInfo[playerid][rpoints],tlvl);
    TextDrawSetString(InfoBox[playerid],exp);
    TextDrawShowForPlayer(playerid,InfoBox[playerid]);
Reply
#2

pawn Код:
format(exp,sizeof(exp),"RPoints: %s/%s",PlayerInfo[playerid][rpoints],tlvl);
pawn Код:
%s - string
Replace
pawn Код:
%s/%s
with
pawn Код:
%d/%d


Greetz,
LetsOWN
Reply
#3

Well i've done that its working but its only showing 0/9 - and thisis only if player is lvl 1 it doesnt shows the Rpoints that he has.
Reply
#4

So perhaps you have some mistakes in calculations. Is this, what you've posted, everything we need to know about your score system?
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)