how to send a message including the value of a certain var - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: how to send a message including the value of a certain var (
/showthread.php?tid=595626)
how to send a message including the value of a certain var -
iNuBe - 05.12.2015
sorry for my noobish question
so for example i want to check my ammo
new ammo = 5 ;
when a player now uses /ammo
i want to send him a message telling him the number of ammo
in simple words i want to send him the value of the variable in a sendclientamessage
if that is possible then pleas help
much thanks
hhhhhh and because i'm a retard i tried this
SendClientMessage(playerid , 0x00FF00FF //light green ,"%d", heavyexplosiveammo);
and ofc i got the tagg missmatch error because that is not how u use it lel
Re: how to send a message including the value of a certain var -
Vince - 05.12.2015
You will want to read up:
https://sampwiki.blast.hk/wiki/Format