[Ajuda] Isto й correto?
#1

esse 3d text tava misturando todos os "FPS", ai eu tentei colocar uma array de format para cada player:

pawn Код:
public OnPlayerUpdate(playerid)
{
    static textfps[10][MAX_PLAYERS];
    format(textfps[playerid],sizeof textfps,"FPS: %d",pFPS[playerid]);
    Update3DTextLabelText(FPSText[playerid],0xFFFF80FF,textfps[playerid]);
    return 1;
}
nгo sei se tem algum problema em fazer desta forma, mas parou de bugar e nгo causou lag
Reply
#2

pawn Код:
public OnPlayerUpdate(playerid)
{
    static textfps[10];
    format(textfps, 10, "FPS: %d", pFPS[playerid]);
    Update3DTextLabelText(FPSText[playerid], 0xFFFF80FF, textfps);
    return 1;
}
Reply
#3

Quote:
Originally Posted by paulor
Посмотреть сообщение
pawn Код:
public OnPlayerUpdate(playerid)
{
    static textfps[10];
    format(textfps, 10, "FPS: %d", pFPS[playerid]);
    Update3DTextLabelText(FPSText[playerid], 0xFFFF80FF, textfps);
    return 1;
}
sim, tava dessa forma, mas tava misturando os texts, ai eu fiz aquela gambiarra la e deu certo
Reply
#4

O que vc postou vai funcionar mais nгo й o correto pois usa cйlulas desnecessariamente, se jб estava da maneira que eu postei entгo o erro estб na suas TD's.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)