textdraw
#1

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

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);
Reply
#3

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

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

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!!!
Reply
#6

plz
Reply
#7

mi post is going doown
Reply
#8

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

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

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!!!
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)