SA-MP Forums Archive
textdraw - 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: textdraw (/showthread.php?tid=88739)



textdraw - Serediucr - 28.07.2009

how i can make a score and a player ?/200 textdraw show? i have coordonates , everything!


Re: textdraw - James_Alex - 28.07.2009

firs: use this http://forum.sa-mp.com/index.php?topic=29132.0 to create your textdraw
then try this
pawn Код:
new string[128]; format(string, 128, "%d/200", GetPlayerScore(playerid);
TextDrawSetStrring(the text, string);



Re: textdraw - Serediucr - 28.07.2009

Quote:
Originally Posted by James_Alex(Coder)
firs: use this http://forum.sa-mp.com/index.php?topic=29132.0 to create your textdraw
I Arleady made textdraws , thx alex



Re: textdraw - Serediucr - 28.07.2009

Quote:
Originally Posted by James_Alex(Coder)
firs: use this http://forum.sa-mp.com/index.php?topic=29132.0 to create your textdraw
then try this
pawn Код:
new string[128]; format(string, 128, "%d/200", GetPlayerScore(playerid);
TextDrawSetStrring(the text, string);
...and it will show score/200
? :P no , i want to show how many players are from 200 slots (/200)
and a score show in another td


Re: textdraw - Serediucr - 28.07.2009

ok , i made the player td by myself , and score too! player one work , but when i add score textdraw it compiles good , but when i run samp-server.exe it crashes!
code from score td:
pawn Код:
//up
new Text:pxtdplay2;
new scoretd[100];
//init
SetTimer("scoretdt",1000,1);
pxtdplay2 = TextDrawCreate(1.000000,426.000000,scoretd);
//and the other textdraw properties

//down
forward scoretdt(playerid);
public scoretdt(playerid)
{
format(scoretd,sizeof(scoretd),"Scor=%i", GetPlayerScore(playerid));
TextDrawSetString(pxtdplay2,scoretd);
return 1;
}
plzplzplzplzplzplz heelp!!!


Re: textdraw - Serediucr - 28.07.2009

plz


Re: textdraw - Serediucr - 28.07.2009

mi post is going doown


Re: textdraw - Serediucr - 28.07.2009

i don't want to quadruple pust (lol) but someone can help me post was going on page 3


Re: textdraw - James_Alex - 28.07.2009

use for(new .. for all the server players
visit this https://sampwiki.blast.hk/wiki/Keywords:Statements#for for more help
and plz do not drible posts plz


Re: textdraw - Marcel - 28.07.2009

Quote:
Originally Posted by Serediucr
ok , i made the player td by myself , and score too! player one work , but when i add score textdraw it compiles good , but when i run samp-server.exe it crashes!
code from score td:
pawn Код:
//up
new Text:pxtdplay2;
new Text:scoretd[100]; //         <------------------------------- LOOK AT THIS LINE :D:D:D:D:D
//init
SetTimer("scoretdt",1000,1);
pxtdplay2 = TextDrawCreate(1.000000,426.000000,scoretd);
//and the other textdraw properties

//down
forward scoretdt(playerid);
public scoretdt(playerid)
{
format(scoretd,sizeof(scoretd),"Scor=%i", GetPlayerScore(playerid));
TextDrawSetString(pxtdplay2,scoretd);
return 1;
}
plzplzplzplzplzplz heelp!!!