CAN SOMEONE EXPLAIN ME - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: CAN SOMEONE EXPLAIN ME (
/showthread.php?tid=249129)
CAN SOMEONE EXPLAIN ME -
Gangasta300 - 17.04.2011
Can someone explain to me how toes this command work
![Huh?](images/smilies/confused.gif)
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 :
![Huh?](images/smilies/confused.gif)
,
and what does this comand mean??
Код:
TextDrawSetString(OwnerShip2,string);
Re: CAN SOMEONE EXPLAIN ME -
Stigg - 17.04.2011
https://sampwiki.blast.hk/wiki/TextDrawSetString
Re: CAN SOMEONE EXPLAIN ME -
Gangasta300 - 17.04.2011
what about %d??
Re: CAN SOMEONE EXPLAIN ME -
Stigg - 17.04.2011
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.
Re: CAN SOMEONE EXPLAIN ME -
Drza - 17.04.2011
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]
Re: CAN SOMEONE EXPLAIN ME -
Gangasta300 - 17.04.2011
tnx all