17.11.2016, 18:22
Since you retrieve the player's name, you can use sscanf and format accordingly:
And like I had told you in the past, select the score and player's name at the same query: https://sampforum.blast.hk/showthread.php?tid=618262
pawn Код:
new online_player;
...
// "string" stores the player's name
sscanf(string, "r", online_player);
...
// when formatting for the dialog..
format(..., "... %s ...", ..., online_player != INVALID_PLAYER_ID ? ("Online") : ("Offline"), ...);