how to send a message including the value of a certain var
#1

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
Reply
#2

You will want to read up: https://sampwiki.blast.hk/wiki/Format
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)