dialog dude
#3

Since you retrieve the player's name, you can use sscanf and format accordingly:
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"), ...);
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
Reply


Messages In This Thread
dialog dude - by BrianFaria - 16.11.2016, 22:40
Re: dialog dude - by BrianFaria - 17.11.2016, 17:53
Re: dialog dude - by Konstantinos - 17.11.2016, 18:22
Re: dialog dude - by BrianFaria - 18.11.2016, 03:57

Forum Jump:


Users browsing this thread: 2 Guest(s)