Experience bar textdraw - problem with respects
#4

Here you need Progress.inc and textdraws...

and you have wrong type on this code:

Quote:

OnPlayerConnect...

new expamount = PlayerInfo[playerid][pScore]*levelexp;

for(new playerid = 0; playerid < MAX_PLAYERS; playerid++)
{

EXP[playerid] = TextDrawCreate(250.000000, 420.000000, "EXP: %d/%d", PlayerInfo[playerid][pRespect], expamount);
TextDrawBackgroundColor(EXP[playerid], 255);
TextDrawFont(EXP[playerid], 2);
TextDrawLetterSize(EXP[playerid], 0.250000, 0.900000);
TextDrawColor(EXP[playerid], 0xFFFFFFFF);
TextDrawSetOutline(EXP[playerid], 1);
TextDrawSetProportional(EXP[playerid], 1);
TextDrawSetShadow(EXP[playerid], 0);
}

dont make it playerid, because is already created by samp.. make ' i ' for(new i=0;....
Reply


Messages In This Thread
Experience bar textdraw - problem with respects - by Saddin - 14.07.2015, 14:38
Re: Experience bar textdraw - problem with respects - by Stanford - 14.07.2015, 14:42
Re: Experience bar textdraw - problem with respects - by Saddin - 14.07.2015, 15:44
Re: Experience bar textdraw - problem with respects - by kyriakos587 - 14.07.2015, 15:50

Forum Jump:


Users browsing this thread: 1 Guest(s)