SA-MP Forums Archive
What you want code. - 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: What you want code. (/showthread.php?tid=208472)



What you want code. - Justas888 - 08.01.2011

Hi, I'm thinking and I can not come up with some ideas how to do what you want to strip the text draws. Maybe you can help to create a code?


Re: What you want code. - Mr.Stranger - 08.01.2011

dude learn english first. There is also a Non-English section. I think English does not suit you


Re: What you want code. - Justas888 - 08.01.2011

Sorry my bad English, I thought I would like to self-constructed bar to show what I want, I want such weapons licenses, and then eat, or buy phone


Re: What you want code. - Justas888 - 08.01.2011

UP.
Maybe you can start to write code?


Re: What you want code. - Ash. - 08.01.2011

https://sampwiki.blast.hk/wiki/TextDrawCreate
and
https://sampforum.blast.hk/showthread.php?tid=2867
will help you.

When you have at least tried, we will help you, otherwise use either search or the script request thread


Re: What you want code. - Mr.Stranger - 08.01.2011

well you should look tutorial in samp wiki. Maybe you will get answer


Re: What you want code. - Justas888 - 08.01.2011

I do like that
public OnPlayerUpdate(playerid)
{
Код:
new msg[128];
if(ZaidejoDB[ playerid ] [ Telefonas ])
{
format(zin,sizeof(zin),"Visai neprosal butu tureti telefona");
}
else if(ZaidejoDB[ playerid ] [ phpNumber ])
{
format(zin,sizeof(zin),"Man reiktu tureti telefono numeri");
}
TextDrawSetString(MinciuJuosta[playerid], msg);
TextDrawShowForPlayer(playerid, MinciuJuosta[playerid]);
return 1;
}
But do not show a next text draw...


Re: What you want code. - Ash. - 08.01.2011

pawn Код:
TextDrawSetString(MinciuJuosta[playerid], msg);
Looks to me like you're formatting zin in your code, and then setting the Textdraw string to whatever "msg is"
Change all "zin" in that code above to "msg" and it should work.


Re: What you want code. - Justas888 - 08.01.2011

still the same, dont work, dont show a next text draw , only format(zin,sizeof(zin),"Visai neprosal butu tureti telefona");
show, dont change


Re: What you want code. - Ash. - 08.01.2011

If thats the only thing that shows,
pawn Код:
if(ZaidejoDB[ playerid ] [ Telefonas ])
is not true