Client message
#1

Why does this getting send twice?

it says

pawn Код:
Your FPS: 0
Your FPS: 90 // this is correct

    for(new i; i < MAX_PLAYERS; i++) if(IsPlayerConnected(i))
    {
        if(pID == playerid) format(FPSmsg, sizeof FPSmsg, "Your FPS: %d", pFPS[i]);
        else format(FPSmsg, sizeof FPSmsg, "%s (%d)'s FPS: %d", PlayerName(pID), pID, pFPS[pID]);
        SendClientMessage(playerid, COLOR_LIGHTBLUE, FPSmsg);
    }
Reply
#2

pawn Код:
SendClientMessage(playerid, COLOR_LIGHTBLUE, FPSmsg);
to

pawn Код:
SendClientMessage(i, COLOR_LIGHTBLUE, FPSmsg);
Reply
#3

I would need to see your whole block of code to see what this is actually trying to do, but the first thing I notice is that
pawn Код:
SendClientMessage(playerid, COLOR_LIGHTBLUE, FPSmsg);
Should be:
pawn Код:
SendClientMessage(i, COLOR_LIGHTBLUE, FPSmsg);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)