CAN SOMEONE EXPLAIN ME
#1

Can someone explain to me how toes this command work
I mean on bolded text

Код:
if(newstate == 2)
	{
        if(RentCars(vehicle))
		{
			if (HireCar[playerid] != vehicle)
			{
				format(string, sizeof(string), "~r~Rent vozilo~n~~w~Cjena:~g~%d$~n~~w~za rent napisi ~g~/rentcar~w~~n~za izlaz ~g~/exit",SBizzInfo[0][sbEntranceCost]);
				TogglePlayerControllable(playerid, 0);
				TextDrawSetString(OwnerShip2,string);
				TextDrawShowForPlayer(playerid,OwnerShip1);
				TextDrawShowForPlayer(playerid,OwnerShip2);
				SetTimerEx("UnistiTDKuce",6000,0,"d",playerid);
			}
		}
how does system know what price need to set with this command :
Код:
%d$
,
and what does this comand mean??
Код:
TextDrawSetString(OwnerShip2,string);
Reply
#2

https://sampwiki.blast.hk/wiki/TextDrawSetString
Reply
#3

what about %d??
Reply
#4

pawn Код:
format(string, sizeof(string), "~r~Rent vozilo~n~~w~Cjena:~g~%d$~n~~w~za rent napisi ~g~/rentcar~w~~n~za izlaz ~g~/exit",SBizzInfo[0][sbEntranceCost]);
%d = SBizzInfo[0][sbEntranceCost]

The string value.
Reply
#5

Quote:

format(string, sizeof(string), "~r~Rent vozilo~n~~w~Cjena:~g~%d$~n~~w~za rent napisi ~g~/rentcar~w~~n~za izlaz ~g~/exit",SBizzInfo[0][sbEntranceCost]);

%d = SBizzInfo[0][sbEntranceCost]
Reply
#6

tnx all
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)