Need help with format()
#3

edit:

Figured out the correct code:
Код:
		new Query1[200],Float:health,money;
		GetPlayerHealth(playerid,health);
		money = GetPlayerMoney(playerid);
		format(Query1,sizeof(Query1),"UPDATE samp SET Health=%f, money=%d WHERE id=%d",health,money,PlayerInfo[playerid][plID]);
		SendClientMessage(playerid,0xFFFFFF,Query1);
		printf("%s",Query1);
		printf("%d",money);
		printf("%f",health);
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)