Help me fix /pm bug
#6

Quote:
Originally Posted by Inn0cent
Посмотреть сообщение
"%s" is for all kind of values, "%d" is only for numeric values. You are using them wrong in your format statement.
You are using %d for name which is not numeric value. So it should be %s for name and %d for playerid.
Wow! Thank you. It works.

changed it to
Код:
format(string, sizeof(string), "(( PM from %s[%d]: %s ))", GetPlayerNameEx(playerid), playerid, reason);
format(string, sizeof(string), "(( PM to %s[%d]: %s ))", GetPlayerNameEx(giveplayerid), giveplayerid, reason);
Reply


Messages In This Thread
Help me fix /pm bug - by Dirda - 04.02.2018, 05:50
Re: Help me fix /pm bug - by Inn0cent - 04.02.2018, 06:25
Re: Help me fix /pm bug - by Sew_Sumi - 04.02.2018, 07:06
Re: Help me fix /pm bug - by ShadowMortar - 04.02.2018, 07:11
Re: Help me fix /pm bug - by Sew_Sumi - 04.02.2018, 07:27
Re: Help me fix /pm bug - by Dirda - 04.02.2018, 08:01
Re: Help me fix /pm bug - by rfr - 04.02.2018, 08:13

Forum Jump:


Users browsing this thread: 1 Guest(s)