28.07.2009, 14:47
how i can make a score and a player ?/200 textdraw show? i have coordonates , everything!
new string[128]; format(string, 128, "%d/200", GetPlayerScore(playerid);
TextDrawSetStrring(the text, string);
Originally Posted by James_Alex(Coder)
firs: use this http://forum.sa-mp.com/index.php?topic=29132.0 to create your textdraw
|
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 Код:
|
//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;
}
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 Код:
|