Need help with format()
#1

Hello

I have the following code:
Код:
		new Query1[200];
		format(Query1,sizeof(Query1),"UPDATE samp SET Health=%d money=%d WHERE id=%d",GetPlayerHealth(playerid),GetPlayerMoney(playerid),PlayerInfo[playerid][plID]);
		SendClientMessage(playerid,0xFFFFFF,Query1);
		printf("%s",Query1);
		printf("%d",GetPlayerMoney(playerid));
which outputs:
Код:
јPDATE samp SET Health=1 money=1 WHERE id=1
100
Why do I have money=1 in query when I actually have 100 money as seen on printf("%d",GetPlayerMoney(playerid));. Also why do i have that strange symbol in word UPDATE (јPDATE instead of UPDATE)?
Reply


Messages In This Thread
Need help with format() - by scriptit - 02.12.2012, 14:07
Re: Need help with format() - by Vince - 02.12.2012, 14:20
Re: Need help with format() - by scriptit - 02.12.2012, 15:13
Re: Need help with format() - by GiamPy. - 02.12.2012, 15:43
Re: Need help with format() - by AndreT - 02.12.2012, 15:49
Re: Need help with format() - by GiamPy. - 02.12.2012, 15:51

Forum Jump:


Users browsing this thread: 1 Guest(s)