dcmd_givecash < sending wrong message
#5

Quote:
Originally Posted by cessil
Quote:
Originally Posted by DarkPhoenix
This is my command givecash and when I sen someone $5000 it shows $2 or $0. Anyway, it's wrong and I don't know what's causing it, the money increases with 5000 but it shows the wrong message.

pawn Код:
format(str, sizeof(str), "%s has given you $%d.", playername, playerid, amount);
that's formatting "playername has given you $playerid" which if the playerid is 0 gives you $0 and if the playerid is 2 gives you $2
So it will be fine if I use this?
pawn Код:
format(str, sizeof(str), "%s has given you $%d.", playername, amount);
Reply


Messages In This Thread
dcmd_givecash < sending wrong message - by Andy_McKinley - 27.03.2010, 08:31
Re: dcmd_givecash < sending wrong message - by Sebago[X] - 27.03.2010, 08:45
Re: dcmd_givecash < sending wrong message - by Andy_McKinley - 27.03.2010, 08:47
Re: dcmd_givecash < sending wrong message - by cessil - 27.03.2010, 08:52
Re: dcmd_givecash < sending wrong message - by Andy_McKinley - 27.03.2010, 08:58
Re: dcmd_givecash < sending wrong message - by Burridge - 27.03.2010, 09:02
Re: dcmd_givecash < sending wrong message - by jamesbond007 - 27.03.2010, 09:04
Re: dcmd_givecash < sending wrong message - by jamesbond007 - 27.03.2010, 09:07

Forum Jump:


Users browsing this thread: 1 Guest(s)